grevlingui 0.1.28 → 0.1.29
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.
|
@@ -32,6 +32,7 @@ const NumberSelect = _ref => {
|
|
|
32
32
|
numberBgColor = '#663399',
|
|
33
33
|
selectorColor = '#1E90FF',
|
|
34
34
|
timeout = 1000,
|
|
35
|
+
onOpenInput,
|
|
35
36
|
closed
|
|
36
37
|
} = _ref;
|
|
37
38
|
const [editing, setEditing] = (0, _react.useState)(false);
|
|
@@ -118,7 +119,11 @@ const NumberSelect = _ref => {
|
|
|
118
119
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
119
120
|
className: "numberSelect_value",
|
|
120
121
|
onClick: () => {
|
|
121
|
-
if (!editing)
|
|
122
|
+
if (!editing) {
|
|
123
|
+
startTimeout();
|
|
124
|
+
onOpenInput === null || onOpenInput === void 0 ? void 0 : onOpenInput();
|
|
125
|
+
}
|
|
126
|
+
|
|
122
127
|
setEditing(!editing);
|
|
123
128
|
},
|
|
124
129
|
style: {
|