iamstevendao / vue-tel-input

International Telephone Input with Vue
https://iamstevendao.com/vue-tel-input/
MIT License
818 stars 342 forks source link

Telphone's dropdown does not open when changing arrow-icon slot #413

Closed cuongle-hdwebsoft closed 1 year ago

cuongle-hdwebsoft commented 1 year ago

Hi, Seem like changing the arrow icon can lead to this issue. Here is my example code:

<vue-tel-input v-model="phoneModel" v-bind="options" @onInput="onInput">
          <template v-slot:arrow-icon="{ open }">
              <div v-if="open">open</div>
               <div v-else>close</div>
          </template>
</vue-tel-input>

Then when you click the new arrow icon, it will not open the country dropdown.

}



Solution: https://github.com/JedWatson/react-select/issues/4560#issuecomment-830150593

I am really happy to contribute MR https://github.com/iamstevendao/vue-tel-input/pull/414