Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-13666

data-clicked attribute is not always removed on ajax form submissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.4-RC1
    • 3.1.3
    • JavaScript / AJAX
    • None

      Forms that are ajaxified using the phpbb.ajaxify() function set the data-clicked attribute to true for the currently clicked submit button. This attribute is removed from other submit buttons upon triggering the click event.
      However, if the submit buttons are outside of the same HTML element, e.g. different fieldsets or paragraphs, the data-clicked attribute will no longer be removed. This will cause unpredictable behavior and might corrupt any form submissions.

            Marc Marc
            Marc Marc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: