TheComputerM / svelte-materialify

A Material UI Design Component library for Svelte heavily inspired by vuetify.
https://svelte-materialify.vercel.app
MIT License
622 stars 83 forks source link

fix(TextField): fix displaying numeric value #252

Open aksenovdev opened 3 years ago

aksenovdev commented 3 years ago

When passing 0 to TextField value, labelActive stay inactive svelte.dev/repl/b93bf9f7006b423281bcaa4a25db4e7a?version=3.37.0

image

Closes: #243

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/thecomputerm/svelte-materialify/4rMaHqPnvvHq8mVCMK9gNwJfU5XP
✅ Preview: Failed

Florian-Schoenherr commented 3 years ago

idea: $: labelActive = !!placeholder || value !== '' || focused; this might not be enough for some other cases, though.