@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.cjs.js
CHANGED
|
@@ -4890,6 +4890,9 @@ var InputString = React.memo(function (_a) {
|
|
|
4890
4890
|
if (e.key === "Enter" && inner !== value) {
|
|
4891
4891
|
onChange === null || onChange === void 0 ? void 0 : onChange(inner);
|
|
4892
4892
|
}
|
|
4893
|
+
if (e.key === "Escape") {
|
|
4894
|
+
setInner(value);
|
|
4895
|
+
}
|
|
4893
4896
|
}, [inner, value, onChange]);
|
|
4894
4897
|
return (React.createElement("input", { type: "text", value: inner, onChange: function (e) { return setInner(e.target.value); }, onBlur: handleBlur, onKeyDown: handleKey }));
|
|
4895
4898
|
});
|