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

Ajax EventLinks should not cancel the click event

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.4
    • 5.4
    • tapestry-core
    • None

    Description

      Currently the click handlers in zone.js return false to prevent browsers from following the link. Sometimes this result in unexpected behavior in pages.

      The use-case where we have been hit by this is ajax links in a bootstrap dropdown:
      When a link option is clicked the dropdown does not close again - This is due to the click event being cancelled.

      The fix that we use locally; is to use event.preventDefault() and let the click event bubble.

      I think this should be the default behavior of the framework - as it has much smaller impact than swallowing the click event and makes the client side things more flexible.

      Attachments

        1. zone-patch.diff
          2 kB
          Chris Poulsen

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              chrispoulsen Chris Poulsen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: