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

[Feat]: discard unsaved settings when settings modal is closed #481

Closed
nbouvrette opened this issue Mar 2, 2023 · 9 comments
Closed

[Feat]: discard unsaved settings when settings modal is closed #481

nbouvrette opened this issue Mar 2, 2023 · 9 comments
Labels
enhancement New feature or request
Milestone

Comments

@nbouvrette
Copy link

Expected Behavior

When I use showSettings, change something in the modal but don't save, if I re-open the modal I would expect to see the applicable settings (I would expect the modal to reset and show the right settings).

Current Behavior

When I use showSettings, change something in the modal but don't save, if I re-open the modal I see the unsaved settings which I find a confusing user experience.

Steps to reproduce

https://orestbida.com/demo-projects/cookieconsent/

  1. Click "Show settings modal"
  2. Change an option
  3. Click on the "X" without saving
  4. Click "Show settings modal"
  5. The unsaved options are persisted

Proposed fix or additional info.

I suggest that the unsaved options are reset when closing the modal or re-opening the modal.

Version

latest

On which browser do you see the issue?

Chrome

@nbouvrette nbouvrette added the bug Something isn't working label Mar 2, 2023
@github-actions github-actions bot added the triage yet to be reviewed label Mar 2, 2023
@orestbida orestbida removed bug Something isn't working triage yet to be reviewed labels Mar 15, 2023
@orestbida
Copy link
Owner

Sorry, this won't be worked on. This is the normal, expected behaviour rather than a bug.

@orestbida orestbida closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
@benseven
Copy link

benseven commented Mar 15, 2023 via email

@kevguy
Copy link

kevguy commented Mar 16, 2023

I noticed the same behavior as well when I'm working on adding a cookie banner with this to our application. And our lawyer said this is not cookie compliant. I'd suggest this should be re-opened.

@benseven
Copy link

benseven commented Mar 16, 2023 via email

@orestbida
Copy link
Owner

Alright, I'll change the behavior since there are a few people who really care about it.

@orestbida orestbida reopened this Mar 16, 2023
@orestbida orestbida added the enhancement New feature or request label Mar 16, 2023
@github-actions github-actions bot added the triage yet to be reviewed label Mar 16, 2023
@orestbida orestbida removed the triage yet to be reviewed label Mar 16, 2023
@orestbida orestbida changed the title [Bug]: calling showSettings persist unsaved settings [Feat]: discard unsaved settings when settings modal is closed Mar 16, 2023
@orestbida
Copy link
Owner

This change will also affect v3.

@orestbida orestbida added this to the v2.9.0 milestone Mar 16, 2023
@benseven
Copy link

benseven commented Mar 16, 2023 via email

@Realme121

This comment was marked as spam.

@nbouvrette
Copy link
Author

Hey thanks guys - I was about to reply back with some UX references but I'm happy I won't have to worry about this one anymore!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants