loon-bulma-react 2022.1.5 → 2022.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/styles/notifier-styles.scss +1 -1
package/dist/index.js
CHANGED
|
@@ -1609,7 +1609,7 @@ function BaseButton(props) {
|
|
|
1609
1609
|
|
|
1610
1610
|
var handleClick = function handleClick(e) {
|
|
1611
1611
|
if (props.loading || props.disabled) return;
|
|
1612
|
-
|
|
1612
|
+
props.onClick && props.onClick(e);
|
|
1613
1613
|
};
|
|
1614
1614
|
|
|
1615
1615
|
return React__default.createElement("button", {
|
|
@@ -2699,6 +2699,7 @@ function NumberInput(props) {
|
|
|
2699
2699
|
|
|
2700
2700
|
var handleChange = function handleChange(val) {
|
|
2701
2701
|
if (!props.disabled) {
|
|
2702
|
+
if (val == '-') return;
|
|
2702
2703
|
var v = parseFloat(val);
|
|
2703
2704
|
var invalidMsg = validate$6(v, state.description, state.validation);
|
|
2704
2705
|
props.onValueChanged && props.onValueChanged(v, invalidMsg == '');
|