[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] ElementPlus: Select elements show numbers instead of labels in cases of...
"Merci Jacob \(@mercihabam\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <68fb8ac02f45_2d11cf18c402f7@gitlab-sidekiq-low-urgency-cpu-bound-v2-854849f664-wnxrl.mail> |
Merci Jacob pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki Commits: 811f56a5 by Merci Jacob at 2025-10-24T14:18:34+00:00 [FIX] ElementPlus: Select elements show numbers instead of labels in cases of options with numeric values --- * [FIX] Select elements show numbers instead of labels in cases of options with numeric values See merge request tikiwiki/tiki!8859 (cherry picked from commit bbdc354704bea825054c1562b5b45350bc9ec613) ebf70f86 [FIX] Select elements show numbers instead of labels in cases of options with numeric values Co-authored-by: Merci Jacob <[email protected]> - - - - - 1 changed file: - src/js/vue-widgets/element-plus-ui/src/composables/usePropParsers.js Changes: ===================================== src/js/vue-widgets/element-plus-ui/src/composables/usePropParsers.js ===================================== @@ -10,6 +10,8 @@ export function usePropParsers() { }; const parseValue = (val) => { + // Ensure numeric strings remain unparsed to avoid unintended numeric conversion + if (!isNaN(val)) return val; try { return typeof val === "string" ? JSON.parse(val) : val; } catch { View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/811f56a5b2984eaa5f1680144dee3cbd81ce40d1 -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/811f56a5b2984eaa5f1680144dee3cbd81ce40d1 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