[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] ElementPlus: Select elements show numbers instead of labels in cases of...

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68fb83d5dbbf6_2c3fa50c23665@gitlab-sidekiq-low-urgency-cpu-bound-v2-854849f664-bzhsd.mail>

luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
bbdc3547 by Merci Jacob at 2025-10-24T13:41:01+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

- - - - -


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/bbdc354704bea825054c1562b5b45350bc9ec613

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/bbdc354704bea825054c1562b5b45350bc9ec613
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.