Skip to content

Commit 7ea4ce5

Browse files
committed
example
1 parent 3bf5682 commit 7ea4ce5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/number_input/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ impl Application for NumberInputDemo {
9393
.into(),
9494
NumberInputDemo::Loaded(State { value }) => {
9595
let lb_minute = Text::new("Number Input:");
96-
let txt_minute = number_input(*value, 255.0, Message::NumInpChanged)
96+
let txt_minute = number_input(*value, Message::NumInpChanged)
97+
.max(255.0)
9798
.style(NumberInputStyles::Default)
9899
.step(0.5);
99100

0 commit comments

Comments
 (0)