Skip to content

Commit 057617c

Browse files
authored
Update joomla-field-fancy-select.w-c.es6.js
`this.dataset` isn't working, but `this.select.dataset` is the right call.
1 parent 164cc23 commit 057617c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ window.customElements.define('joomla-field-fancy-select', class extends HTMLElem
126126
searchPlaceholderValue: this.searchPlaceholder,
127127
removeItemButton: true,
128128
searchFloor: this.minTermLength,
129-
searchResultLimit: parseInt(this.dataset.maxResults, 10) || 4,
130-
renderChoiceLimit: parseInt(this.dataset.maxRender, 10) || -1,
129+
searchResultLimit: parseInt(this.select.dataset.maxResults, 10) || 4,
130+
renderChoiceLimit: parseInt(this.select.dataset.maxRender, 10) || -1,
131131
shouldSort: false,
132132
fuseOptions: {
133133
threshold: 0.3, // Strict search

0 commit comments

Comments
 (0)