• It’s possible this is an issue specific to something I’m doing in my theme, but it only happens when I have this plugin activated.

    On page/post editing screens, I get this JavaScript error:

    TypeError: e.preventDefault is not a function. (In 'e.preventDefault()', 'e.preventDefault' is undefined)

    If I deactivate this plugin, the error does not occur. I believe this just started happening with the update to WordPress 5.6.

Viewing 3 replies - 1 through 3 (of 3 total)
  • jottevanger

    (@jottevanger)

    @room34 did you make any progress with this? I’ve been struggling with the same, I can’t figure out if there is a clash between acf-input-osm.min.js and jquery, or if it’s a question of the sequence of libraries loading, or something else entirely.

    Thread Starter room34

    (@room34)

    I haven’t really had a chance to look into this any further. I don’t have a ton of need for this plugin with most of the sites I’m working on right now.

    jottevanger

    (@jottevanger)

    @room34 thanks, no problem. I believe (it’s always hard to be sure with intermittent issues) that I tracked the problem down to a JS problem elsewhere some that was leading to errors that then upset ACF/OSM. The stacktrace lead me to look in the wrong place for the cause, but making my other code more robust seems to have helped.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JavaScript error on editing pages with WordPress 5.6’ is closed to new replies.