westonganger / input-case-enforcer

Enforce uppercase, lowercase, or Capitalized inputs & textareas
MIT License
4 stars 2 forks source link

Tested and seems to be working for a Vanilla Js version of input-case-enforcer. #5

Closed m0chael closed 1 year ago

m0chael commented 1 year ago

I've added an updated version of the input-case-enforcer with a vanilla Js similar version. This one is contained in it's own separate file and is experimental but seems to be working for the main functionality. The 'destroy' method I'm not completely sure about, but it might be working as well. This is currently attached to window.inputCaseEnforcer and does not require any external libraries.

westonganger commented 1 year ago

Hopefully this is working for you, but unforuntately I wont merge this as this is not a 1:1 cohesive counterpart to the jquery version. Im not inclined to add vanilla support because of this reason and that there is still no real simple resolution to #3 namespaced events.