Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

fix(TextField): fix displaying numeric value #252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aksenovdev
Copy link

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

image

Closes: #243

@vercel
Copy link

vercel bot commented Jun 5, 2021

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

@aksenovdev aksenovdev changed the title fix(TextField): Fix displaying numeric value fix(TextField): fix displaying numeric value Jun 5, 2021
@Florian-Schoenherr
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TextField label bug when value is 0
2 participants