arengibook 2.4.704 → 2.4.706
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 +12 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39892,6 +39892,8 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
39892
39892
|
objValue = _props$objValue === void 0 ? null : _props$objValue,
|
|
39893
39893
|
_props$placeholder = props.placeholder,
|
|
39894
39894
|
placeholder = _props$placeholder === void 0 ? 'Sélectionnez des options' : _props$placeholder,
|
|
39895
|
+
_props$multipleplaceh = props.multipleplaceholder,
|
|
39896
|
+
multipleplaceholder = _props$multipleplaceh === void 0 ? "Veuillez sélectionner des options" : _props$multipleplaceh,
|
|
39895
39897
|
_props$disabled = props.disabled,
|
|
39896
39898
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
39897
39899
|
_props$filter = props.filter,
|
|
@@ -39974,8 +39976,17 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
39974
39976
|
};
|
|
39975
39977
|
}, []);
|
|
39976
39978
|
useEffect(function () {
|
|
39979
|
+
console.log(multipleplaceholder);
|
|
39980
|
+
console.log(placeholder);
|
|
39977
39981
|
var observer = new MutationObserver(function () {
|
|
39978
39982
|
var labelElement = document.querySelector('.p-multiselect-label');
|
|
39983
|
+
if (labelElement) {
|
|
39984
|
+
console.log('labelElement');
|
|
39985
|
+
console.log(labelElement);
|
|
39986
|
+
console.log(labelElement.textContent);
|
|
39987
|
+
console.log(placeholder);
|
|
39988
|
+
console.log("placeholder");
|
|
39989
|
+
}
|
|
39979
39990
|
if (labelElement && labelElement.textContent === 'empty') {
|
|
39980
39991
|
labelElement.textContent = placeholder;
|
|
39981
39992
|
}
|
|
@@ -39987,7 +39998,7 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
39987
39998
|
return function () {
|
|
39988
39999
|
observer.disconnect();
|
|
39989
40000
|
};
|
|
39990
|
-
}, [
|
|
40001
|
+
}, [multipleplaceholder]);
|
|
39991
40002
|
var optionTemplate = function optionTemplate(option) {
|
|
39992
40003
|
if (!option) return null;
|
|
39993
40004
|
if (isSelectMeta) {
|