@flozy/editor 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,11 @@ const FormNumbers = props => {
|
|
31
31
|
component: "input",
|
32
32
|
...rest,
|
33
33
|
type: "number",
|
34
|
+
inputProps: {
|
35
|
+
min: 0
|
36
|
+
},
|
34
37
|
onChange: onChange,
|
38
|
+
onWheel: e => e.target.blur(),
|
35
39
|
sx: {
|
36
40
|
width: "100%",
|
37
41
|
border: `1px solid ${borderColor || "#FFF"}`,
|
@@ -46,9 +50,17 @@ const FormNumbers = props => {
|
|
46
50
|
},
|
47
51
|
borderStyle: borderStyle || "solid",
|
48
52
|
color: textColor || "#000",
|
49
|
-
background: bgColor || "transparent"
|
53
|
+
background: bgColor || "transparent",
|
54
|
+
'&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
|
55
|
+
'-webkit-appearance': 'none',
|
56
|
+
margin: 0
|
57
|
+
},
|
58
|
+
'&[type=number]': {
|
59
|
+
'-moz-appearance': 'textfield' // Hide spin buttons for Firefox
|
60
|
+
}
|
50
61
|
}
|
51
62
|
})
|
52
63
|
});
|
53
64
|
};
|
65
|
+
|
54
66
|
export default FormNumbers;
|