@trackunit/react-form-components 0.0.466 → 0.0.468
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -614,8 +614,8 @@ const Checkbox = React__namespace.forwardRef((_a, ref) => {
|
|
|
614
614
|
const isReadonly = disabled || readOnly;
|
|
615
615
|
const onKeyPress = e => {
|
|
616
616
|
var _a, _b;
|
|
617
|
-
e.preventDefault();
|
|
618
617
|
if ("Space" === e.code) {
|
|
618
|
+
e.preventDefault();
|
|
619
619
|
(_a = internalRef.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
620
620
|
}
|
|
621
621
|
if ("Enter" === e.code) {
|
package/index.esm.js
CHANGED
|
@@ -584,8 +584,8 @@ const Checkbox = React.forwardRef((_a, ref) => {
|
|
|
584
584
|
const isReadonly = disabled || readOnly;
|
|
585
585
|
const onKeyPress = e => {
|
|
586
586
|
var _a, _b;
|
|
587
|
-
e.preventDefault();
|
|
588
587
|
if ("Space" === e.code) {
|
|
588
|
+
e.preventDefault();
|
|
589
589
|
(_a = internalRef.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
590
590
|
}
|
|
591
591
|
if ("Enter" === e.code) {
|