Customizer JS and addClass
-
I’m hoping someone can point me in the direction of a simple answer. Feels like I’m missing something obvious…
When trying to use the Customizer JS API, I ran into a problem appending classes to an element. Because the Customizer postMessage message sends on keyup, typing a class into the form element sends messages:
c
cl
cla
classand so on.. The problem is: if I’m trying to add a class to the element by using the addClass function of jQuery, I get all four of those “classes” added to the element because they were each acted upon separately. Is there some way to prevent this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Customizer JS and addClass’ is closed to new replies.