@rkmodules/rules 0.0.82 → 0.0.84
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.cjs.js +3 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4888,6 +4888,9 @@ var InputString = React.memo(function (_a) {
|
|
|
4888
4888
|
if (e.key === "Enter" && inner !== value) {
|
|
4889
4889
|
onChange === null || onChange === void 0 ? void 0 : onChange(inner);
|
|
4890
4890
|
}
|
|
4891
|
+
if (e.key === "Escape") {
|
|
4892
|
+
setInner(value);
|
|
4893
|
+
}
|
|
4891
4894
|
}, [inner, value, onChange]);
|
|
4892
4895
|
return (React.createElement("input", { type: "text", value: inner, onChange: function (e) { return setInner(e.target.value); }, onBlur: handleBlur, onKeyDown: handleKey }));
|
|
4893
4896
|
});
|