[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [BP][FIX] Autocomplete: select event when item uses 'label' instead of 'value'

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <691dd169788ca_2b1d9716810921@gitlab-sidekiq-low-urgency-cpu-bound-v2-cbb4bb8f8-kqs9l.mail>

luci pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
4685d7d4 by Landry Bitege at 2025-11-19T14:09:08+00:00
[BP][FIX] Autocomplete: select event when item uses 'label' instead of 'value'
---
* [FIX] Autocomplete: select event when item uses 'label' instead of 'value'
---
* [FIX] Autocomplete: select event when item uses 'label' instead of 'value'

See merge request tikiwiki/tiki!8760

See merge request tikiwiki/tiki!8950

- - - - -


1 changed file:

- src/js/vue-widgets/element-plus-ui/src/utils/applyAutocomplete.js


Changes:

=====================================
src/js/vue-widgets/element-plus-ui/src/utils/applyAutocomplete.js
=====================================
@@ -59,7 +59,8 @@ export default function applyAutocomplete(element, remoteSourceUrl = null, sourc
     });
 
     elementPlusUi.addEventListener("select", (event) => {
-        element.value = event.detail[0].value;
+        const key = valueKey || "value";
+        element.value = event.detail[0][key];
         element.dispatchEvent(new Event("change"));
         if (selectCb) {
             selectCb(event);



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4685d7d4da5831c8d617cb52a4e12dbaffde18df

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4685d7d4da5831c8d617cb52a4e12dbaffde18df
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.