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

Checkbox cannot set tabIndex properly

XMLWordPrintable

      Steps to Reproduce

      <zk>
        <checkbox id="cbox" tabindex="1"/>
        <button label="Add tabIndex" onClick="cbox.setTabindex(0)" />
        <button label="Remove tabIndex"  onClick="cbox.setTabindex(null)"/>
      </zk>
      

      Click both buttons, neither will fail to set.

      Current Result

      Error: Failed to process setAttr tabindex is not defined (ReferenceError)

      Expected Result

      Set tabIndex correctly.

      Debug Information

      https://github.com/zkoss/zk/blob/v8.0.2/zul/src/archive/web/js/zul/wgt/Checkbox.js#L96
      Unresolved variable 'tabindex'

      Workaround

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m