diff --git a/source/components/form/select.mjs b/source/components/form/select.mjs index 75c80c33ce5fec45e1b68f02544b2e2335aa44c1..59e23f9cccec6ee0897decbf873976d08e9d44a8 100644 --- a/source/components/form/select.mjs +++ b/source/components/form/select.mjs @@ -417,7 +417,6 @@ class Select extends CustomControl { * @property {boolean} features.useStrictValueComparison Use strict (`===`) comparison when matching option values. * @property {boolean} features.showRemoteInfo When the filter mode is set to "remote," display a badge indicating the possibility of additional remote options. * @property {Object} remoteInfo Configuration for remote info badge. - * @property {string} remoteInfo.path Path to the remote info badge. * @property {string} remoteInfo.url URL for total count of options when `filter.mode==="remote"` is set. * @property {Object} placeholder Placeholder text for the control. * @property {string} placeholder.filter Placeholder text for filter input. @@ -474,7 +473,6 @@ class Select extends CustomControl { url: null, remoteInfo: { - path: null, url: null, }, @@ -3035,8 +3033,10 @@ function initTotal() { return; } + const fetchOptions = this.getOption("fetch", {}); + getGlobal() - .fetch(url) + .fetch(url, fetchOptions) .then((response) => { if (!response.ok) { // Improved status checking using `response.ok`