JoryHogeveen / view-admin-as

View the WordPress admin as a different role, switch between users, temporarily change your capabilities, set default screen settings for roles, manage your roles and capabilities.

Home Page:https://wordpress.org/plugins/view-admin-as/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conflict with Ultimate Member - "Form Changed" popup

neilgilmour opened this issue · comments

Expected Behavior

Navigating Ultimate Member pages in WP admin is a smooth and pleasant journey. Or at least as smooth and pleasant as it can be for Ultimate Member.

Actual Behavior

Navigating Ultimate Member pages in WP admin is not a smooth and pleasant journey. Every page change triggers a "Leave this page? content not saved" error.

Steps to Reproduce the Problem

  1. Install VAA
  2. Install Ultimate Member
  3. navigate round some UM pages
  4. throw computer out of window in frustration

Specifications

  • Plugin Version: 1.8
  • WordPress Version: 4.9.6
  • Other plugins installed: Ultimate Member 2.0.17
  • Theme: TwentySeventeen
  • Browser: Chrome

@neilgilmour
Quick question, are you in a view when this error shows?
And are you using the free version?

Are you sure the issue is with VAA?
Just installed Ultimate Member free on my dev site and can't find any noticeable changes in load time.

Ah, hold on, I get what you mean! It's not about the load time but about the form-notice you get.
Funny thing, I noticed this with WooCommerce etc. too but it didn't came to mind that it could be VAA.
Will look into this!

@neilgilmour
See commit 7724e22.
The problem was that JS was triggering a change on load to start some conditional handing but that also triggers the browser into believing that something in a form object was actually changed (which is not the case).