Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: fix
this
binding in onClick .then
handler with arrow functi…
…on (#2373) docs: fix `this` binding in onClick .then handler with arrow fn Update the `.then()` handler in the `onClick` attribute to use an arrow function instead of a traditional `function(arg)` expression. This fixes the `this` binding within the lexical scope, ensuring that `this` is bound to the `button` instead of the `window` and resolving the issue. Fixes/Closes issue #2257
- Loading branch information