Skip to content

Commit 789ba79

Browse files
authored
[6.0] Fancy select field remove placeholder workaround (joomla#46246)
1 parent e263ef7 commit 789ba79

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

build/media_source/system/js/fields/joomla-field-fancy-select.w-c.es6.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,6 @@ window.customElements.define('joomla-field-fancy-select', class extends HTMLElem
111111

112112
this.isDisconnected = false;
113113

114-
// Add placeholder option for multiple mode,
115-
// Because it not supported as parameter by Choices for <select> https://github.com/jshjohnson/Choices#placeholder
116-
if (this.select.multiple && this.placeholder) {
117-
const option = document.createElement('option');
118-
option.setAttribute('placeholder', '');
119-
option.textContent = this.placeholder;
120-
this.select.appendChild(option);
121-
}
122-
123114
// Init Choices
124115
this.choicesInstance = new Choices(this.select, {
125116
placeholderValue: this.placeholder,

0 commit comments

Comments
 (0)