Lloyd Lobo b176784f31
docs: fix this binding in onClick .then handler with arrow function (#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
2024-04-25 12:47:21 -04:00
..
2024-02-02 11:29:23 -07:00
2024-02-02 11:36:09 -07:00
2023-03-18 11:29:38 -04:00
2024-02-05 15:56:32 -05:00
2023-03-18 11:29:38 -04:00
2023-10-09 17:28:49 -04:00
2023-03-18 11:29:38 -04:00