-
Notifications
You must be signed in to change notification settings - Fork 84
fix(ItemGroup): make value an array if it's not an index #94
fix(ItemGroup): make value an array if it's not an index #94
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/thecomputerm/svelte-materialify/mvpgk90r7 |
Thank you! This has to do with the implementation of multiple, I think. |
This change broke my application. I'm using Select components without the |
@kickermeister First of all, I'm really sorry. old: wrong: } else if (typeof (val) === 'number') {
value = val;
} else value = [val]; might work: } else if (typeof (val) === '???') {
value = [val];
} else value = val; (where The Select had some changes for just fixing up things, we want to rebuild it eventually. |
No need to worry in my case, the application is still under development and not yet published. 😊 |
@kickermeister on the basic one for example you can also see a visual bug, the selected value is not |
Signed-off-by: Florian-Schoenherr <florian.schoenherr99@gmail.com>
@kickermeister try the new release 👍 |
Looking good - thanks a lot for the quick fix! |
Hi, I've tried to fix #90 and have something that seems to work. Hopefully someone can use this to fix it properly.
This fixes multiple broken playgrounds and examples in the docs.
value = [val]
fixes dropdowns like these. Then I had to addtypeof (val) === 'number'
to stop the first three of these ListItemGroups from breaking.Preview: https://svelte-materialify-git-fork-dincahill-fix-itemgroup.thecomputerm.vercel.app/components/alerts/#playground
Preview: https://svelte-materialify-git-fork-dincahill-fix-itemgroup.thecomputerm.vercel.app/components/list-item-groups/