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

update is sent even though no change is made #633

Open
estani opened this issue Mar 1, 2021 · 0 comments
Open

update is sent even though no change is made #633

estani opened this issue Mar 1, 2021 · 0 comments

Comments

@estani
Copy link

estani commented Mar 1, 2021

This happens always if display_* is used.

There's already a comparison taking place in code:

        // Avoid request if no change is made
        if (this.formType in {"input": 1, "textarea": 1} && value === this.oldValue) {

oldValue is initialized with the html content of the element, here to code extract

this.oldValue = this.isPlaceHolder() ? "" : this.element.html();

which in multiple cases will not be equal to the input content. Perhaps it should be filled with original_content?

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