LouisMazel / maz-ui

Vue & Nuxt library of standalone components & tools to build interfaces

Home Page:https://maz-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Issue][<PhoneInput>] Clearing v-model doesn't clear input

patsok opened this issue · comments

Describe the bug

Clearing v-model doesn't clear input - it only updates when v-model is valid number, so when I'm clearing v-model with undefined or empty string or null its value inside isn't cleared.

To Reproduce

Steps to reproduce the behavior:

  1. Set v-model to valid number
  2. Set v-model to undefined/null/empty string

Expected behavior

Input with country and phone number should be empty as on initial state.

Screenshots

in Vue Dev Tools you can see modelValue null on MazPhoneNumberInput
obraz
on PhoneInput component it has value before clearing
obraz

Desktop (please complete the following information)

  • OS: Linux/Ubuntu
  • Browser Chrome
  • Version 123.0.6312.122
commented

Solved in v3.44.0