xnimorz / svelte-input-mask

Input masking component for Svelte with simple API and rich customization
https://codesandbox.io/s/svelte-input-mask-demo-xurgr
102 stars 10 forks source link

Data Binding? #14

Open nickpoulos opened 3 years ago

nickpoulos commented 3 years ago

I am new to Svelte to forgive me if I am missing something.

But It seems really weird that the only way to get the actual data from the input is to register an onChange event?

I did not see any other examples how to bind the input value to a component variable.

xnimorz commented 3 years ago

Hi! Yeah, this is a valid scenario, please, feel free to send a PR. I don't work on this lib actively at the moment, and I'm not sure I'll have time in the nearest future.