@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.modern.js
CHANGED
|
@@ -14645,7 +14645,7 @@ var HiddenInput = styled.input(_templateObject4$a || (_templateObject4$a = _tagg
|
|
|
14645
14645
|
|
|
14646
14646
|
var isAvailable = function isAvailable(index, option) {
|
|
14647
14647
|
return !option.disabled && !(option.rules || []).some(function (rule) {
|
|
14648
|
-
return rule(index, option) !== true;
|
|
14648
|
+
return rule(index, option.data) !== true;
|
|
14649
14649
|
});
|
|
14650
14650
|
};
|
|
14651
14651
|
|
|
@@ -14701,7 +14701,9 @@ var useNavigation = function useNavigation(props) {
|
|
|
14701
14701
|
}, [highlight, options]);
|
|
14702
14702
|
|
|
14703
14703
|
var onFocus = function onFocus() {
|
|
14704
|
-
setHighlight(
|
|
14704
|
+
setHighlight(options.findIndex(function (e, i) {
|
|
14705
|
+
return isAvailable(i, e);
|
|
14706
|
+
}));
|
|
14705
14707
|
};
|
|
14706
14708
|
|
|
14707
14709
|
var onBlur = function onBlur() {
|