We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
8.1
6.4.18.0
When you add data-form-preserver="true" to a form the value is saved in local storage and filled up with the stored value after a page reload.
data-form-preserver="true"
When you have the other elements in the form besides input fields. The input fields (ex. div) are not taken into account.
div
Working example: <form id="test-form" data-form-preserver="true"> <input name="firstname" type="text"> <input name="lastname" type="text"> </form>
<form id="test-form" data-form-preserver="true"> <input name="firstname" type="text"> <input name="lastname" type="text"> </form>
Not working example: <form id='test-form' data-form-preserver='true'> <input name="firstname" type='text'> <div class='form-row'> <div class='form-group'> <input name="lastname" type='text'> </div> </div> </form>
<form id='test-form' data-form-preserver='true'> <input name="firstname" type='text'> <div class='form-row'> <div class='form-group'> <input name="lastname" type='text'> </div> </div> </form>
The text was updated successfully, but these errors were encountered:
Hi @wannevancamp, thank you for creating a PR to fix this issue. 👍
You changes were merged to trunk and the PR was marked as "Accepted": 9b0a663
Sorry, something went wrong.
No branches or pull requests
PHP Version
8.1
Shopware Version
6.4.18.0
Expected behaviour
When you add
data-form-preserver="true"
to a form the value is saved in local storage and filled up with the stored value after a page reload.Actual behaviour
When you have the other elements in the form besides input fields. The input fields (ex.
div
) are not taken into account.How to reproduce
Working example:
<form id="test-form" data-form-preserver="true"> <input name="firstname" type="text"> <input name="lastname" type="text"> </form>
Not working example:
<form id='test-form' data-form-preserver='true'> <input name="firstname" type='text'> <div class='form-row'> <div class='form-group'> <input name="lastname" type='text'> </div> </div> </form>
The text was updated successfully, but these errors were encountered: