Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3519

Inconsistent behavior in disabled input based controls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.4
    • 8.0.3
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.0.4 S1
    • None

      Steps to Reproduce

      http://zkfiddle.org/sample/3rsa4vr/3-Inconsistent-behavior-in-disabled-input-based-controls
      Run fiddle
      Click / right click on disabled components. (active components are for comparison only)

      Chrome Results

      textbox left click: left click event triggered
      textbox right click: right click event triggered
      decimalbox left click: left click event triggered
      decimalbox right click: right click event triggered
      checkbox left click on input element: no event
      checkbox right click on input element: no event
      checkbox left click between input element and border: left click event triggered
      checkbox right click between input element and border: right click event triggered
      button left click: no event
      button right click: no event

      Firefox Results

      textbox left click: no event
      textbox right click: no event, context menu opened
      decimalbox left click: no event
      decimalbox right click: no event, context menu opened
      checkbox left click on input element: no event
      checkbox right click on input element: no event, context menu opened
      checkbox left click between input element and border: left click event triggered
      checkbox right click between input element and border: right click event triggered
      button left click: no event
      button right click: no event, context menu opened

      IE Results

      textbox left click: left click event triggered
      textbox right click: right click event triggered
      decimalbox left click: left click event triggered
      decimalbox right click: right click event triggered
      checkbox left click on input element: no event
      checkbox right click on input element: right click event triggered
      checkbox left click between input element and border: no event
      checkbox right click between input element and border: no event, context menu opened
      button left click: no event
      button right click: right click event triggered

      Expected Result

      More consistent behavior between input elements / more consistent behavior between browsers

      Debug Info

      In the "no event" cases, it seem that the browser itself suppresses click events on disabled elements

            DevChu DevChu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 1 hour
                1h