react-menu-list
Advanced tools
Comparing version 6.1.2 to 6.1.3
@@ -0,1 +1,5 @@ | ||
## 6.1.3 (2022-08-11) | ||
- Fixed issue where MenuButton closes its dropdown if the page loses and regains focus. | ||
## 6.1.2 (2021-10-06) | ||
@@ -2,0 +6,0 @@ |
@@ -95,3 +95,6 @@ "use strict"; | ||
_kefir["default"].merge([_kefir["default"].merge([(0, _fromEventsCapture["default"])(window, 'mousedown'), (0, _fromEventsCapture["default"])(window, 'focus')]).filter(function (e) { | ||
_kefir["default"].merge([_kefir["default"].merge([(0, _fromEventsCapture["default"])(window, 'mousedown'), (0, _fromEventsCapture["default"])(window, 'focus') // Ignore window focus events that happen when the page regains focus | ||
.filter(function (e) { | ||
return e.target !== window; | ||
})]).filter(function (e) { | ||
var el = _this2._anchorEl; | ||
@@ -270,2 +273,2 @@ | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZW51QnV0dG9uLmpzIl0sIm5hbWVzIjpbIk1lbnVCdXR0b24iLCJvcGVuZWQiLCJSZWFjdCIsImNyZWF0ZVJlZiIsInN0YXRlIiwiUHJvbWlzZSIsInJlc29sdmUiLCJwcm9wcyIsIm9uV2lsbE9wZW4iLCJLZWZpciIsIm1lcmdlIiwid2luZG93IiwiZmlsdGVyIiwiZSIsImVsIiwiX2FuY2hvckVsIiwiRmxvYXRBbmNob3IiLCJwYXJlbnROb2RlcyIsInRhcmdldCIsIm5vZGUiLCJmcm9tRXZlbnRzIiwia2V5Iiwid2hpY2giLCJtYXAiLCJwcmV2ZW50RGVmYXVsdCIsInN0b3BQcm9wYWdhdGlvbiIsInRha2VVbnRpbEJ5IiwiX29uQ2xvc2UiLCJvblZhbHVlIiwiUmVhY3RET00iLCJ1bnN0YWJsZV9iYXRjaGVkVXBkYXRlcyIsImNsb3NlIiwic2V0U3RhdGUiLCJvbkRpZE9wZW4iLCJvbldpbGxDbG9zZSIsImVta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oaXMuc3RhdGUub3BlbmVkKSByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKCk7XG4gICAgaWYgKHRoaXMucHJvcHMub25XaWxsT3BlbikgdGhpcy5wcm9wcy5vbldpbGxPcGVuKCk7XG5cbiAgICAvLyBDbGlja2luZyBvdXRzaWRlIG9mIHRoZSBkcm9wZG93biBvciBwcmVzc2luZyBlc2NhcGUgc2hvdWxkIGNsb3NlIHRoZVxuICAgIC8vIGRyb3Bkb3duLlxuICAgIEtlZmlyLm1lcmdlKFtcbiAgICAgIEtlZmlyLm1lcmdlKFtcbiAgICAgICAgZnJvbUV2ZW50c0NhcHR1cmUod2luZG93LCAnbW91c2Vkb3duJyksXG4gICAgICAgIGZyb21FdmVudHNDYXB0dXJlKHdpbmRvdywgJ2ZvY3VzJylcbiAgICAgIF0pXG4gICAgICAgIC5maWx0ZXIoZSA9PiB7XG4gICAgICAgICAgY29uc3QgZWwgPSB0aGlzLl9hbmNob3JFbDtcbiAgICAgICAgICBmb3IgKGxldCBub2RlIG9mIEZsb2F0QW5jaG9yLnBhcmVudE5vZGVzKGUudGFyZ2V0KSkge1xuICAgICAgICAgICAgaWYgKG5vZGUgPT09IGVsKSByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9KSxcbiAgICAgIEtlZmlyLmZyb21FdmVudHMod2luZG93LCAna2V5ZG93bicpXG4gICAgICAgIC5maWx0ZXIoZSA9PiBlLmtleSA/IGUua2V5ID09PSAnRXNjYXBlJyA6IGUud2hpY2ggPT09IDI3KVxuICAgICAgICAubWFwKGUgPT4ge1xuICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbigpO1xuICAgICAgICB9KVxuICAgIF0pXG4gICAgICAudGFrZVVudGlsQnkodGhpcy5fb25DbG9zZSlcbiAgICAgIC5vblZhbHVlKCgpID0+IHtcbiAgICAgICAgUmVhY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biAgICAgICAgICAgICAgc2V0UmVmKGFuY2hvclJlZiwgZWwpO1xuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgICAgICAgICBzdHlsZT17c3R5bGV9XG4gICAgICAgICAgICBvbk1vdXNlRG93bj17ZSA9PiB7XG4gICAgICAgICAgICAgIGlmIChlLmJ1dHRvbiAhPT0gMCkgcmV0dXJuO1xuICAgICAgICAgICAgICB0aGlzLnRvZ2dsZSgpO1xuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIG9uS2V5UHJlc3M9e2U9PntcbiAgICAgICAgICAgICAgaWYgKGUua2V5ID09PSAnRW50ZXInIHx8IGUua2V5ID09PSAnICcpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnRvZ2dsZSgpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9fVxuICAgICAgICAgICAgYXJpYS1oYXNwb3B1cD17dHJ1ZX1cbiAgICAgICAgICAgIGFyaWEtZXhwYW5kZWQ9e29wZW5lZH1cbiAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgIHRpdGxlPXt0aXRsZX1cbiAgICAgICAgICAgIHsuLi50aGlzLnByb3BzLmJ1dHRvblByb3BzfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICA8L0J1dHRvbkNvbXBvbmVudD5cbiAgICAgICAgfVxuICAgICAgICBmbG9hdD17XG4gICAgICAgICAgIW9wZW5lZCA/IG51bGwgOlxuICAgICAgICAgICAgPE1lbnVMaXN0SW5zcGVjdG9yIG9uSXRlbUNob3Nlbj17KCkgPT4gdGhpcy5faXRlbUNob3NlbigpfT5cbiAgICAgICAgICAgICAge21lbnV9XG4gICAgICAgICAgICA8L01lbnVMaXN0SW5zcGVjdG9yPlxuICAgICAgICB9XG4gICAgICAvPlxuICAgIC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Q2FwdHVyZSh3aW5kb3csICdtb3VzZWRvd24nKSxcbiAgICAgICAgZnJvbUV2ZW50c0NhcHR1cmUod2luZG93LCAnZm9jdXMnKVxuICAgICAgICAgIC8vIElnbm9yZSB3aW5kb3cgZm9jdXMgZXZlbnRzIHRoYXQgaGFwcGVuIHdoZW4gdGhlIHBhZ2UgcmVnYWlucyBmb2N1c1xuICAgICAgICAgIC5maWx0ZXIoZSA9PiBlLnRhcmdldCAhPT0gd2luZG93KSxcbiAgICAgIF0pXG4gICAgICAgIC5maWx0ZXIoZSA9PiB7XG4gICAgICAgICAgY29uc3QgZWwgPSB0aGlzLl9hbmNob3JFbDtcbiAgICAgICAgICBmb3IgKGxldCBub2RlIG9mIEZsb2F0QW5jaG9yLnBhcmVudE5vZGVzKGUudGFyZ2V0KSkge1xuICAgICAgICAgICAgaWYgKG5vZGUgPT09IGVsKSByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9KSxcbiAgICAgIEtlZmlyLmZyb21FdmVudHMod2luZG93LCAna2V5ZG93bicpXG4gICAgICAgIC5maWx0ZXIoZSA9PiBlLmtleSA/IGUua2V5ID09PSAnRXNjYXBlJyA6IGUud2hpY2ggPT09IDI3KVxuICAgICAgICAubWFwKGUgPT4ge1xuICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbigpO1xuICAgICAgICB9KVxuICAgIF0pXG4gICAgICAudGFrZVVudGlsQnkodGhpcy5fb25DbG9zZSlcbiAgICAgIC5vblZhbHVlKCgpID0+IHtcbiAgICAgICAgUmVhY3RET00udW5zdGFibGVfYmF0Y2hlZFVwZGF0ZXMoKCkgPT4ge1xuICAgICAgICAgIHRoaXMuY2xvc2UoKTtcbiAgICAgICAgfSk7XG4gICAgICB9KTtcblxuICAgIHJldHVybiBuZXcgUHJvbWlzZShyZXNvbHZlID0+IHtcbiAgICAgIH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3R5bGV9XG4gICAgICAgICAgICBvbk1vdXNlRG93bj17ZSA9PiB7XG4gICAgICAgICAgICAgIGlmIChlLmJ1dHRvbiAhPT0gMCkgcmV0dXJuO1xuICAgICAgICAgICAgICB0aGlzLnRvZ2dsZSgpO1xuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIG9uS2V5UHJlc3M9e2U9PntcbiAgICAgICAgICAgICAgaWYgKGUua2V5ID09PSAnRW50ZXInIHx8IGUua2V5ID09PSAnICcpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnRvZ2dsZSgpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9fVxuICAgICAgICAgICAgYXJpYS1oYXNwb3B1cD17dHJ1ZX1cbiAgICAgICAgICAgIGFyaWEtZXhwYW5kZWQ9e29wZW5lZH1cbiAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgIHRpdGxlPXt0aXRsZX1cbiAgICAgICAgICAgIHsuLi50aGlzLnByb3BzLmJ1dHRvblByb3BzfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICA8L0J1dHRvbkNvbXBvbmVudD5cbiAgICAgICAgfVxuICAgICAgICBmbG9hdD17XG4gICAgICAgICAgIW9wZW5lZCA/IG51bGwgOlxuICAgICAgICAgICAgPE1lbnVMaXN0SW5zcGVjdG9yIG9uSXRlbUNob3Nlbj17KCkgPT4gdGhpcy5faXRlbUNob3NlbigpfT5cbiAgICAgICAgICAgICAge21lbnV9XG4gICAgICAgICAgICA8L01lbnVMaXN0SW5zcGVjdG9yPlxuICAgICAgICB9XG4gICAgICAvPlxuICAgICk7XG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "react-menu-list", | ||
"version": "6.1.2", | ||
"version": "6.1.3", | ||
"description": "React component for menu lists and submenus", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
239799
1578