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

Table action not working with tooltip #14

Closed
chosten opened this issue Apr 15, 2023 · 4 comments · Fixed by #18
Closed

Table action not working with tooltip #14

chosten opened this issue Apr 15, 2023 · 4 comments · Fixed by #18
Labels
bug Something isn't working

Comments

@chosten
Copy link

chosten commented Apr 15, 2023

The table action is not working if you set a tooltip on the action.
When you set a tooltip the x-data of the button ends up empty, and when you try to copy, the console show the error copyable is not defined.

Is there a workaround ? I don't care about the "Copied!" tooltip if there is a conflict with that.

@chosten chosten added the bug Something isn't working label Apr 15, 2023
@dmandrade
Copy link
Member

I'll check, I needed to set an xdata in action for it to work in safari. Probably when you set a tooltip it should overwrite.

@ChrisHardie
Copy link

In trying out the recent Safari fix, I'm also seeing the error:

[Warning] Alpine Expression Error: Can't find variable: copyable (app.js, line 1)
Expression: "window.navigator.clipboard.writeText(copyable); $tooltip(successMessage);"

@zhanang19
Copy link
Contributor

I can confirm that it was working smoothly on my side using Firefox & Safari. Could you share your code @chosten @ChrisHardie?

@dmandrade
Copy link
Member

Tooltip conflict fixed on v1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants