• We have redone the forum. If you notice any issues or errors please open a Support Ticket under the Members dropdown and let us know.
M

Minify JS breaking code?

  • Thread starter Thread starter mjda
  • Start date Start date
M

mjda

Guest

I've got an add-on that is utilizing JS to count characters in a text input form, so I can display the remaining characters.

Here is the full JS:

JavaScript:
Code:
((window, document) => {
    XF.MyAddonCharCount = XF.Element.newHandler({ textInput: null, maxLength: null, charCount: null, init () {
            const textInput = this.target const charCount = textInput.parentElement.querySelector('div.formRow-explain span')...

Read more

Continue reading...
 
Similar threads Most view View more
Back
Top