We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bf5682 commit 7ea4ce5Copy full SHA for 7ea4ce5
examples/number_input/src/main.rs
@@ -93,7 +93,8 @@ impl Application for NumberInputDemo {
93
.into(),
94
NumberInputDemo::Loaded(State { value }) => {
95
let lb_minute = Text::new("Number Input:");
96
- let txt_minute = number_input(*value, 255.0, Message::NumInpChanged)
+ let txt_minute = number_input(*value, Message::NumInpChanged)
97
+ .max(255.0)
98
.style(NumberInputStyles::Default)
99
.step(0.5);
100
0 commit comments