libreform / wp-libre-form

Easy native HTML5 forms for WordPress. Version 1.5 is unmaintained, but works without issue. 2.0 has been rewritten from the ground, and can be found at https://github.com/libreform/libreform
https://wordpress.org/plugins/wp-libre-form
GNU General Public License v3.0
67 stars 27 forks source link

Debounce parseFields() #49

Closed k1sul1 closed 7 years ago

k1sul1 commented 7 years ago

When user is typing their form, detected fields are automatically added to sidebar for easy preview of what inputs exist in the form.

There's a problem with this: it's annoying, because it's distracting. While I'm typing text to the editor, I want to focus on it, but if something is flashing in my field of view, it naturally draws my attention.

gif about the problem

If we debounce parseFields(), it's instantly one distraction less.

anttiviljami commented 7 years ago

I would like more input on this. I personally like this feature because it tells me if I forgot to name a field and gives me feedback if the form names are stupid like "field_21321", which often happens when copying forms from other sites.

k1sul1 commented 7 years ago

Does it have to happen instantly? When you stop typing, it's 300ms (or whatever gets defined) and the feedback is there.

anttiviljami commented 7 years ago

I agree debouncing is a good idea. :+1: Anyone got time to implement?