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

tabindex=0 is not passed to the widgets associated dom element

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 8.0.2
    • 8.0.0, 7.0.7
    • Components
    • Security Level: Jimmy
    • ZK 8.0.2 S1

    Description

      When assigning a tabindex to a component / widget, if the associated dom tree element does not have a tabindex property yet, tabindex will only be set if the new value is !=0

      for example :

      		<button tabindex="0"></button>
      		<button tabindex="1"></button>
      

      result in:

      <button type="button" id="c9JQ6" class="z-button"></button>
      <button type="button" id="c9JQ7" class="z-button" tabindex="1"></button>
      

      This makes assigning a a tabindex of 0 difficult, but using for example:

      xmlns:w="client" w:onBind="this._node.tabIndex = 0"
      

      to bypass the 0 check.

      tabindex=0 is the default value for most dom input element, but molds using non-input elements (<a>, <span>, <div>) do not have a default tabindex value.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours
                  1d 2h