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

Add mechanism to show that field was saved #27

Open
fregante opened this issue Jun 24, 2019 · 1 comment
Open

Add mechanism to show that field was saved #27

fregante opened this issue Jun 24, 2019 · 1 comment

Comments

@fregante
Copy link
Owner

For example:

  • if _handleFormUpdates run successfully, add wos-saved class
  • if _handleFormUpdates errors, add wos-error class and trigger an event named options-sync:error on the field
  • when user starts typing, remove both classes

Invisible form auto-saving is great and "native", but feedback is good when things don't work well.

Maybe just the error needs to be handled.

@fregante
Copy link
Owner Author

fregante commented Aug 2, 2019

When the save is successful, a options-sync:form-synced event is fired on the form

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

1 participant