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

InputElement select() setSelectionRange() not working in chrome

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: