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

tagulous select2 <-> jquery.dirty #156

Open
jedie opened this issue Feb 5, 2022 · 0 comments
Open

tagulous select2 <-> jquery.dirty #156

jedie opened this issue Feb 5, 2022 · 0 comments

Comments

@jedie
Copy link
Contributor

jedie commented Feb 5, 2022

In my https://github.com/jedie/PyInventory project i used some tagulous fields and would like to warn user about unchanged forms

I tested https://github.com/simon-reynolds/jquery.dirty for this.

Sadly jquery.dirty doesn't handle django-tagulous fields correctly. It raised the unchaned warning for new, but not filled forms and raise no warning on changes :(

Any idea how to fix this?

(Crosspost: simon-reynolds/jquery.dirty#71 )

jedie added a commit to jedie/PyInventory that referenced this issue Feb 5, 2022
Adds jquery.dirty v0.8.3 from: https://github.com/simon-reynolds/jquery.dirty/releases/tag/0.8.3

Show a warning if the user attempts to navigate away from the form with pending changes.

Sadly jquery.dirty doesn't work correctly for tagulous fields, see:

* simon-reynolds/jquery.dirty#71
* radiac/django-tagulous#156
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant