arengibook 2.4.584 → 2.4.585

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35847,13 +35847,19 @@ var Dropdown = function Dropdown(_ref) {
35847
35847
  setOptionSelected(value !== null && value !== void 0 ? value : null);
35848
35848
  }, [value]);
35849
35849
  useEffect(function () {
35850
- var handleScroll = function handleScroll() {
35850
+ var handleScroll = function handleScroll(e) {
35851
+ var target = e.target;
35852
+
35853
+ // Si on scroll dans la liste elle-même (aucun effet de suppression de liste)
35854
+ if (target.closest && target.closest('.p-dropdown-panel')) {
35855
+ return;
35856
+ }
35857
+
35858
+ // Sinon, le zone de liste est fermée
35851
35859
  var dropdownPanels = document.querySelectorAll('.p-dropdown-panel');
35852
35860
  dropdownPanels.forEach(function (panel) {
35853
35861
  if (panel && panel.style.display !== 'none') {
35854
- // Simule un clic en dehors ou cache manuellement
35855
- document.body.click();
35856
- document.activeElement.blur();
35862
+ document.body.click(); // Déclenche un "click outside"
35857
35863
  }
35858
35864
  });
35859
35865
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.584",
4
+ "version": "2.4.585",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {