Title: JavaScript error on editing pages with WordPress 5.6
Last modified: December 9, 2020

---

# JavaScript error on editing pages with WordPress 5.6

 *  [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * (@room34)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-on-editing-pages-with-wordpress-5-6/)
 * 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](https://wordpress.org/support/users/jottevanger/)
 * (@jottevanger)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-on-editing-pages-with-wordpress-5-6/#post-14036136)
 * [@room34](https://wordpress.org/support/users/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 [Room 34 Creative Services, LLC](https://wordpress.org/support/users/room34/)
 * (@room34)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-on-editing-pages-with-wordpress-5-6/#post-14036364)
 * 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](https://wordpress.org/support/users/jottevanger/)
 * (@jottevanger)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-on-editing-pages-with-wordpress-5-6/#post-14053102)
 * [@room34](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/acf-openstreetmap-field/assets/icon-256x256.png?rev=2117994)
 * [ACF OpenStreetMap Field](https://wordpress.org/plugins/acf-openstreetmap-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-openstreetmap-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-openstreetmap-field/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-openstreetmap-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-openstreetmap-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-openstreetmap-field/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [jottevanger](https://wordpress.org/support/users/jottevanger/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-on-editing-pages-with-wordpress-5-6/#post-14053102)
 * Status: not resolved