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

InputElement select() setSelectionRange() not working in chrome

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 8.6.0
    • None
    • None

    Description

      Steps to Reproduce

      <zk>
          <textbox id="input" value="testing"/>
          <button label="select" onClick="input.select()" />
          <button label="select testi" onClick="input.setSelectionRange(0, 5)" />
      </zk>
      

      click those buttons

      Current Result

      no text are selected after clicking those buttons

      Expected Result

      all text inside the textbox should be selected after clicking the 'select' button
      'testi' inside the textbox should be selected after clicking the 'select testi' button

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: