- Issue created by @adhershmnair
- ๐ฎ๐ณIndia adhershmnair Trivandrum
On selecting a webform from the autocomplete input, the form tag is having an attribute `data-drupal-form-submit-last=` which have the selected autocomplete. When clicking the back button the data attribute is still there but not doing anything. If we remove the data attribute from the form tag on back button, then the filter will work as expected.
- Merge request !511Issue #3471061: Allow webform filter form submission after browser back โ (Open) created by adhershmnair
- Status changed to Needs review
3 months ago 7:02pm 29 August 2024 - ๐ต๐ญPhilippines regina.meow
We are on a workshop today and my first contribution to Drupal community is to review the changes within the next hour.
- ๐ต๐ญPhilippines regina.meow
I have done manual testing but I observed different result from the expected result.
Specifications:
simplytest.me
Webform - 6.3.x-dev
Drupal core 10.3.3
Patch: https://git.drupalcode.org/project/webform/-/merge_requests/511.diff
Install profile: StandardAll the following steps were reproduced and observed.
- Navigate to Admin -> Structure -> Webform.
- In the Filter Webforms section, use the input field to search for a webform name.
- From the autocomplete suggestions, select a webform.
- Drupal will automatically redirect to the selected webform without needing to click the filter button.
- Click the browser's back button to return to the webform listing page.
- Observe that the input field is still populated with the previously searched webform name.
- Notice that the result is not filtered.
- Click the Filter button.
Expected Result: The webform listing should be filtered based on the keyword in the input field.
Actual Result: Clicking the Filter button will redirect to the webform previously selected from the autocomplete suggestions.
- ๐บ๐ธUnited States jrockowitz Brooklyn, NY
I agree that the "Expected Result: The webform listing should be filtered based on the keyword in the input field.".
I am not sure how we can reset, via JS, the filter value after the form is submitted via autocompletion.