LouisMazel/maz-ui

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

patsok opened this issue · 1 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

Solved in v3.44.0