arengibook 2.4.561 → 2.4.562

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 +2 -20
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35776,20 +35776,6 @@ var Dropdown = function Dropdown(_ref) {
35776
35776
  _useState2 = _slicedToArray$8(_useState, 2),
35777
35777
  optionSelected = _useState2[0],
35778
35778
  setOptionSelected = _useState2[1];
35779
- var resetDropdownFilter = function resetDropdownFilter() {
35780
- setTimeout(function () {
35781
- var dropdownPanels = document.querySelectorAll('.p-dropdown-panel');
35782
- dropdownPanels.forEach(function (panel) {
35783
- var input = panel.querySelector('.p-dropdown-filter');
35784
- if (input) {
35785
- input.value = '';
35786
- input.dispatchEvent(new Event('input', {
35787
- bubbles: true
35788
- }));
35789
- }
35790
- });
35791
- }, 50);
35792
- };
35793
35779
  var style = {
35794
35780
  border: invalid ? '1px solid red' : '1px solid #ccc',
35795
35781
  width: '100%'
@@ -35809,8 +35795,7 @@ var Dropdown = function Dropdown(_ref) {
35809
35795
  disabled: disabled,
35810
35796
  filter: filter,
35811
35797
  optionLabel: optionLabel,
35812
- style: style,
35813
- onHide: resetDropdownFilter
35798
+ style: style
35814
35799
  }), invalid && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("small", {
35815
35800
  style: {
35816
35801
  color: 'red',
@@ -35830,10 +35815,7 @@ var optionsExample = [{
35830
35815
  code: '3'
35831
35816
  }];
35832
35817
  var DropdownPresets = {
35833
- Default: {
35834
- placeholder: 'Sélectionnez une option',
35835
- options: optionsExample
35836
- },
35818
+ Default: {},
35837
35819
  Disabled: {
35838
35820
  placeholder: 'Sélection désactivée',
35839
35821
  options: optionsExample,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.561",
4
+ "version": "2.4.562",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {