Closed fernandaparisi closed 1 year ago
Hi @fernandaparisi 👋, can you share how you are passing an action to <CopyButton>
? Also, what version of Ember are you using? sendAction
is pretty antiquated at this point and was deprecated in Ember 3.x but should still work. It was removed in Ember 4.x.
I've be meaning to do a major release update here that will remove sendAction
among other updates.
Describe the bug
success
anderror
actions are not working properly due to deprecation ofsendAction
method: https://deprecations.emberjs.com/v3.x/#toc_ember-component-send-actionTo Reproduce Steps to reproduce the behavior:
addon/components/copy-button.js
, line 91, you'll get a warning saying that Closure actions are deprecated.Expected behavior
success
anderror
actions should work accordingly.Screenshots
Desktop (please complete the following information):