@juspay/svelte-ui-components 4.10.2 → 4.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -245,10 +245,11 @@ CSS custom properties apply across the shadow DOM boundary.
|
|
|
245
245
|
|
|
246
246
|
### Event handlers: use `addEventListener`, not `element.onclick`
|
|
247
247
|
|
|
248
|
-
Handlers are passed as **props**, and
|
|
248
|
+
Handlers are passed as **props**, and 93 of those props are named after event-handler
|
|
249
249
|
accessors that already exist on `HTMLElement` — `onclick`, `onchange`, `oninput`,
|
|
250
|
-
`onkeydown` and
|
|
251
|
-
the property does not register a DOM handler the way it would
|
|
250
|
+
`onkeydown`, `ontouchstart` and 22 others. On a custom element the component's prop
|
|
251
|
+
wins, so assigning the property does not register a DOM handler the way it would
|
|
252
|
+
anywhere else:
|
|
252
253
|
|
|
253
254
|
```js
|
|
254
255
|
const checkbox = document.querySelector('sui-checkbox');
|