arengibook 2.4.697 → 2.4.698
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 +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39953,6 +39953,7 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
39953
39953
|
_useState4 = _slicedToArray$a(_useState3, 2);
|
|
39954
39954
|
_useState4[0];
|
|
39955
39955
|
var setHovered = _useState4[1];
|
|
39956
|
+
var multiselectRef = useRef(null);
|
|
39956
39957
|
var style = {
|
|
39957
39958
|
border: invalid ? '1px solid red' : '1px solid #ccc',
|
|
39958
39959
|
width: '100%'
|
|
@@ -39972,6 +39973,13 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
39972
39973
|
observer.disconnect();
|
|
39973
39974
|
};
|
|
39974
39975
|
}, []);
|
|
39976
|
+
useEffect(function () {
|
|
39977
|
+
var _multiselectRef$curre;
|
|
39978
|
+
var labelElement = (_multiselectRef$curre = multiselectRef.current) === null || _multiselectRef$curre === void 0 ? void 0 : _multiselectRef$curre.querySelector('.p-multiselect-label');
|
|
39979
|
+
if (labelElement && labelElement.textContent === 'empty' && placeholder) {
|
|
39980
|
+
labelElement.textContent = placeholder;
|
|
39981
|
+
}
|
|
39982
|
+
}, [selectedOptions, placeholder]);
|
|
39975
39983
|
var optionTemplate = function optionTemplate(option) {
|
|
39976
39984
|
if (!option) return null;
|
|
39977
39985
|
if (isSelectMeta) {
|
|
@@ -40244,7 +40252,7 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
40244
40252
|
optionGroupChildren: 'items'
|
|
40245
40253
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
40246
40254
|
className: "p-multiselect-label"
|
|
40247
|
-
}, selectedOptionsText), displayNbOption && selectedOptions.length > 0 && /*#__PURE__*/React__default.createElement(Badge, {
|
|
40255
|
+
}, "ici ", selectedOptionsText), displayNbOption && selectedOptions.length > 0 && /*#__PURE__*/React__default.createElement(Badge, {
|
|
40248
40256
|
value: selectedOptions.length,
|
|
40249
40257
|
className: "custom-badge",
|
|
40250
40258
|
style: {
|