Vue.directive not working with InputText

UI Components for Vue
Post Reply
marciotw
Posts: 5
Joined: 03 Jun 2011, 04:05

30 May 2020, 23:33

I have a problem when i am using a directive with InputText.
It is not working.
I am using the follow code:

Vue.directive('uppercase', {
update (el) {
el.value = el.value.toUpperCase()
},
})

<InputText type="text" v-model="valueSearch" v-uppercase />

When i use the simple input like the code below, it work:

<input v-model="valueSearch" v-uppercase/>



Are there someone with the same problem to help me ?

Thanks.

cagatay.civici
Prime
Posts: 18309
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Jul 2020, 10:16

That is strange, could you please create a ticket at our github issues so our team reviews it.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest