Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork131
-
We are testing out free version of CoreUI 4 for Vue, and are having trouble registering events (for example click) on simple components like CButton. Is there a recommended way to this? Is this maybe only available on PRO version? Thanks! |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 9 replies
-
Can you show some code for a CButton that's not working for you? If there's one thing a buttonshould be able to do, that's click! 😉 |
BetaWas this translation helpful?Give feedback.
All reactions
-
for example, we tried adding@click event listener on CButton, but click event didn't register: <c-button @click="login" :disabled="isLoading" color="primary" type="submit" > Login</c-button> If we add a wrapper div around it, and place the@click event listener there, it registers the click. |
BetaWas this translation helpful?Give feedback.
All reactions
-
@aviatmcel I will try to release the fix tomorrow. BTW. I replied to your support ticket 2 days ago, did you get my email? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Can you try to remove this line If disabled is to true then the button doesn't emit the event. |
BetaWas this translation helpful?Give feedback.
All reactions
-
hmm no, removing I can make it work by adding .native to@click, like this: Maybe I forgot to import some part of CoreUI lib? I have these imports inmain.js:
BTW, still not getting any email response from support :) |
BetaWas this translation helpful?Give feedback.
All reactions
-
Please change |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
hmm, changed this, but its still the same, only works with@click.native |
BetaWas this translation helpful?Give feedback.
All reactions
-
@aviatmcel please update to version v4.2.0 |
BetaWas this translation helpful?Give feedback.