Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip: crash when empty\null #1511

Closed
NeluQi opened this issue Sep 7, 2021 · 1 comment
Closed

Tooltip: crash when empty\null #1511

NeluQi opened this issue Sep 7, 2021 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@NeluQi
Copy link

NeluQi commented Sep 7, 2021

If v-tooltip is null or undefined, it will crash

Expected Behavior: if null or empty, do not show the tooltip at all

How to call: v-tooltip = "null" (In my project I do this v-tooltip = "data.value? Data.value: null")

image

image

If there is no data, it is better not to show the hint at all (The photo looks like now if there is no data):
image

codesandbox:
https://codesandbox.io/embed/cool-leaf-hyg2g?fontsize=14&hidenavigation=1&theme=dark

@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Sep 10, 2021
@tugcekucukoglu tugcekucukoglu added this to the 3.7.2 milestone Sep 10, 2021
@tugcekucukoglu tugcekucukoglu self-assigned this Sep 10, 2021
mertsincan added a commit that referenced this issue Sep 14, 2021
@shljshlj
Copy link

This should be fixed in PrimeVue for Vue 2 (breaking in v2.9.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants