Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2068

Use <button>, not <a>, tags for the close buttons on alerts

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Add type="button" to button used to close alerts so the enter key continues to submit the form if the alerts block is inside a form.

      I don't know much about coffeescript but the javascript changes below makes it work for me.

      From:
      element = builder("div",

      { "class": className }

      , ["button.close", "\u00d7"], content);

      To:
      element = builder("div",

      { "class": className }

      , ["button.close",

      { "type":"button" }

      , "\u00d7"], content);

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              dustinywoods Dustin Woods
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: