@mw-kit/mw-ui 1.7.96 → 1.7.97
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.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14648,7 +14648,7 @@ var HiddenInput = styled__default.input(_templateObject4$a || (_templateObject4$
|
|
|
14648
14648
|
|
|
14649
14649
|
var isAvailable = function isAvailable(index, option) {
|
|
14650
14650
|
return !option.disabled && !(option.rules || []).some(function (rule) {
|
|
14651
|
-
return rule(index, option) !== true;
|
|
14651
|
+
return rule(index, option.data) !== true;
|
|
14652
14652
|
});
|
|
14653
14653
|
};
|
|
14654
14654
|
|
|
@@ -14704,7 +14704,9 @@ var useNavigation = function useNavigation(props) {
|
|
|
14704
14704
|
}, [highlight, options]);
|
|
14705
14705
|
|
|
14706
14706
|
var onFocus = function onFocus() {
|
|
14707
|
-
setHighlight(
|
|
14707
|
+
setHighlight(options.findIndex(function (e, i) {
|
|
14708
|
+
return isAvailable(i, e);
|
|
14709
|
+
}));
|
|
14708
14710
|
};
|
|
14709
14711
|
|
|
14710
14712
|
var onBlur = function onBlur() {
|