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

JS error showed in console when listening w:onFocus event on textbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Normal Normal
    • None
    • 7.0.0, 6.5.4
    • Components

      Reproduce sample:

      <zk xmlns:w="client">
          <script type="text/javascript"><![CDATA[
          function moveCursor(wgt) {
              var inp = wgt.getInputNode(),
                  temp = jq(inp).focus().val();
              jq(inp).val('').val(temp);
          }
          ]]></script>
          <textbox value="test" focus="true" w:onFocus="moveCursor(this)" />
      </zk>
      

            Unassigned Unassigned
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: