You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/client/js-interop.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The `liveSocket` instance exposes the following methods:
35
35
-`enableLatencySim(milliseconds)` - turns on latency simulation, see [Simulating latency](#simulating-latency)
36
36
-`disableLatencySim()` - turns off latency simulation
37
37
-`execJS(el, encodedJS)` - executes encoded JavaScript in the context of the element
38
-
-`js()` - returns an object with methods to manipluate the DOM and execute JavaScript. The applied changes integrate with server DOM patching. See [JS commands](#js-commands).
38
+
-`js()` - returns an object with methods to manipulate the DOM and execute JavaScript. The applied changes integrate with server DOM patching. See [JS commands](#js-commands).
39
39
40
40
## Debugging client events
41
41
@@ -184,7 +184,7 @@ The above life-cycle callbacks have in-scope access to the following attributes:
184
184
on the server-side. Dispatching new uploads triggers an input change event which will be sent to the
185
185
LiveComponent or LiveView the `selectorOrTarget` is defined in, where its value can be either a query selector or an
186
186
actual DOM element. If the query selector returns more than one live file input, an error will be logged.
187
-
*`js()` - returns an object with methods to manipluate the DOM and execute JavaScript. The applied changes integrate with server DOM patching. See [JS commands](#js-commands).
187
+
*`js()` - returns an object with methods to manipulate the DOM and execute JavaScript. The applied changes integrate with server DOM patching. See [JS commands](#js-commands).
188
188
189
189
For example, the markup for a controlled input for phone-number formatting could be written
0 commit comments