webbingbrasil/filament-copyactions

Table action not working with tooltip

Closed this issue · 4 comments

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.

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.

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);"

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

Tooltip conflict fixed on v1.1.1