Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save buttons sometimes require two clicks #738

Open
jonom opened this issue Mar 18, 2016 · 7 comments
Open

Save buttons sometimes require two clicks #738

jonom opened this issue Mar 18, 2016 · 7 comments

Comments

@jonom
Copy link

jonom commented Mar 18, 2016

Sometimes when you make a change in the CMS and click Save... nothing happens. The Save button gets focus, but you need to click it again to see the spinning progress indicator animation and trigger the actual save. This bug has tripped me up countless times, because I assume I've saved but I haven't.

I encounter this bug often, but I can't seem to come up with conditions to reliably reproduce it. I've seen it on 3.1 through 3.3 and assume it happens in 3.0 too. I've seen it affect page forms as well as DO edit forms (such as editing a Member in the security section).

Have other people observed this bug or is it just me?

@christopherdarling
Copy link

Not just you, experienced this too

@jonom
Copy link
Author

jonom commented Mar 18, 2016

This appears to be a better buttons issue: unclecheese/silverstripe-gridfield-betterbuttons#112

@jonom jonom closed this as completed Mar 18, 2016
@dhensby dhensby reopened this Mar 18, 2016
@dhensby
Copy link
Contributor

dhensby commented Mar 18, 2016

I dont think so - I think that better buttons issue is this issue ^

There's definitely the problem from #3592 that causes this behaviour

@jonom
Copy link
Author

jonom commented Mar 18, 2016

I can reproduce this bug pretty reliably with betterbuttons installed but if I remove betterbuttons the same steps don't work. That's not to say that it's definitely a better buttons issue but I can't say for sure I've seen this bug on a vanilla installation because I install the better buttons module on every website I make (cos it's sweet).

So yeah #3592 might fix this issue but I'm not sure the issue exists without better buttons installed. If anyone can confirm experiencing this bug on a site without better buttons installed that will be great to know :)

@unclecheese is the author of both the BB module and #3592 so he might have some insights on this one :D

@dhensby
Copy link
Contributor

dhensby commented Mar 18, 2016

Ah. I'm talking more about this happening on pages, rather than model Admin. Still sounds related

@jonom
Copy link
Author

jonom commented Apr 28, 2016

@unclecheese did some research in unclecheese/silverstripe-gridfield-betterbuttons#112 (comment) and patched the betterbuttons behaviour, but this remains a minor usability issue when editing pages with or without betterbuttons installed.

Steps to reproduce:

  1. Open any page in the CMS
  2. Click in the title field (or any regular text field) and change the text
  3. Proceed directly to clicking the Save button (don't blur the field before hand)
  4. Instead of triggering a Save, the state of the button changes from:
    screen shot 2016-04-27 at 2 45 27 pm to screen shot 2016-04-27 at 2 45 19 pm
  5. A second click is required to trigger the actual save.

This is inconsistent behaviour because if you load a page without making any changes and click the Save button while it is in this state screen shot 2016-04-27 at 2 45 27 pm it works just fine. So it should always work on the first click.

Seems to be an issue with change detection. At the moment we only detect changes on blur instead of keyup/paste etc. so when you go directly to click the Save button after introducing a change in the form the form doesn't have enough time to react to the changed data and conflicts with / cancels out the Save button click behaviour.

Besides the fact it should fix this issue, more aggressive change detection would be a usability win I think because currently if you make a change to only one field on a page in the CMS the button state lies to you by indicating nothing has changed.

This is an issue in both SS3.x and SS4.

@sminnee sminnee changed the title Save buttons sometimes require two clicks [ADMIN] Save buttons sometimes require two clicks Oct 6, 2018
@sminnee sminnee transferred this issue from silverstripe/silverstripe-framework Nov 3, 2018
@sminnee sminnee changed the title [ADMIN] Save buttons sometimes require two clicks Save buttons sometimes require two clicks Nov 3, 2018
@maxime-rainville
Copy link
Contributor

This might be a duplicate of silverstripe/silverstripe-cms#2309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants