Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

How do I use oninput this.reportValidity in svelte

$
0
0

This code works perfectly in HTML

<input type="text" name="country" pattern="[A-z]{3}"    oninput="if (typeof this.reportValidity === 'function') {this.reportValidity();}"/>

How do I use it in Svelte.oninput is not allowed. I tried on:input, but I don't have access to this


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>