Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@window
1 parent 9cc36fd commit f7953b6Copy full SHA for f7953b6
1 file changed
docs/reference/controllers.md
@@ -232,7 +232,13 @@ class EffectsController extends Controller {
232
```
233
234
If the two controllers don't belong to the same HTML element, the `data-action` attribute
235
-needs to be added to the *receiving* controller's element.
+needs to be added to the *receiving* controller's element. And if the receiving controller's
236
+element is not a parent (or same) of the emitting controller's element, you need to add
237
+`@window` to the event:
238
+
239
+```html
240
+<div data-action="clipboard:copy@window->effects#flash">
241
+```
242
243
`dispatch` accepts additional options as the second parameter as follows:
244
0 commit comments