Reset button deactivated but still there

Created on 5 June 2024, 9 months ago
Updated 19 July 2024, 7 months ago

Hi,
My config is Drupal 10.2.6 with theme Bootstrap 5.
Since the update to 6.0.6, I have a problem with the reset button. It's deactivated in the view, nevertheless it's still visible in the page (empty, without value/text).

Here is the code with 6.0.3 :

<div data-drupal-selector="edit-actions" class="form-actions js-form-wrapper form-wrapper" id="edit-actions">

    <input data-bef-auto-submit-click="" class="js-hide button js-form-submit form-submit btn btn-primary" data-drupal-selector="edit-submit-v01-espace-presse" type="submit" id="edit-submit-v01-espace-presse" value="Appliquer" />

</div>

Here is the code for the same with version 6.0.6 :

<div data-drupal-selector="edit-actions" class="form-actions js-form-wrapper form-wrapper" id="edit-actions">

    <input data-bef-auto-submit-click="" class="js-hide button js-form-submit form-submit btn btn-primary" data-drupal-selector="edit-submit-v01-espace-presse" type="submit" id="edit-submit-v01-espace-presse" value="Appliquer" />

    <input data-drupal-selector="edit-reset-v01-espace-presse" type="submit" id="edit-reset-v01-espace-presse" name="reset" value="" class="button js-form-submit form-submit btn btn-primary" />

</div>

As you can see, the submit button is still in the code even if deactivated, but at least it has the class "js-hide". The reset button doesn't.
I enclose a print screen to show the result.

(I can play with CSS/JS to hide it until the correction)

Thanks in advance.

πŸ› Bug report
Status

Fixed

Version

7.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024