@linzjs/lui 18.6.0 → 18.6.1
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/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +1 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [18.6.1](https://github.com/linz/lui/compare/v18.6.0...v18.6.1) (2023-08-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **LuiMultiSwitch:** Fix controlled props warning for read-only text input ([#985](https://github.com/linz/lui/issues/985)) ([ac718ee](https://github.com/linz/lui/commit/ac718eeaf08f1e58107098d44ed7497c6b42963b))
|
|
7
|
+
|
|
1
8
|
# [18.6.0](https://github.com/linz/lui/compare/v18.5.1...v18.6.0) (2023-08-14)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.js
CHANGED
|
@@ -67865,7 +67865,7 @@ var LuiMultiSwitch = function (_a) {
|
|
|
67865
67865
|
select(newSelectedIndex).then();
|
|
67866
67866
|
};
|
|
67867
67867
|
return (React__default["default"].createElement("div", { className: clsx('LuiMultiSwitch', className), role: 'radiogroup', "data-testid": props['data-testid'] },
|
|
67868
|
-
React__default["default"].createElement("input", { ref: inputRef, name: id.current, type: 'text', value: selectedIndex, autoFocus: autoFocus, onKeyUp: function (e) {
|
|
67868
|
+
React__default["default"].createElement("input", { ref: inputRef, readOnly: true, name: id.current, type: 'text', value: selectedIndex, autoFocus: autoFocus, onKeyUp: function (e) {
|
|
67869
67869
|
e.key === 'ArrowLeft' && selectOffset(-1);
|
|
67870
67870
|
e.key === 'ArrowRight' && selectOffset(1);
|
|
67871
67871
|
e.key === ' ' && selectOffset(1, true);
|