vue-tel-input icon indicating copy to clipboard operation
vue-tel-input copied to clipboard

Is there any reasons cause this problem?

Open zhuyanxuan opened this issue 3 years ago • 6 comments

微信截图_20210831223025

i try many times,but it still show undefined. i don't konw how to solve it

zhuyanxuan avatar Aug 31 '21 14:08 zhuyanxuan

微信截图_20210831223025

zhuyanxuan avatar Aug 31 '21 14:08 zhuyanxuan

微信截图_20210831223025

i try many times,but it still show undefined. i don't konw how to solve it

Use event listener @open and replace the arrow yourself.

aligajani avatar Sep 20 '21 02:09 aligajani

happen with me too

mohamedAdel01 avatar Oct 06 '21 11:10 mohamedAdel01

hello. I use a bit older version "vue-tel-input": "5.3.0" and it works fine without this redundant string

vlad909 avatar Nov 08 '21 11:11 vlad909

I don't understand why this is closed. I finally found a way :

If you don't care about the arrows and just want to make 'undefined' disappears you only have to add a template with an empty span to the tel-input component: <vue-tel-input> <template v-slot:arrow-icon> <span></span> </template> </vue-tel-input>

If you want the arrows you can do like this: Add a data in your parent component open: false

then add a template v-slot in the tel-input component and listen for the open and close event: <vue-tel-input @open="open = true" @close="open = false" > <template v-slot:arrow-icon> <span v-if="open">▲</span> <span v-else>▼</span> </template> </vue-tel-input>

thibeDev avatar Nov 19 '21 15:11 thibeDev

After some digging I tracked down the issue to this commit and the vue-template-compiler upgrade.

Upgrading to latest vue version fixed the issue.

So, if you're using vue < 2.6.13, either upgrade to [email protected] or use vue-tel-input <= 5.3.0.

@iamstevendao would it be possible to add this requirement to package.json's peerDependencies ?

gnuletik avatar Jan 30 '22 20:01 gnuletik