royale-asjs icon indicating copy to clipboard operation
royale-asjs copied to clipboard

unable to use TextArea.setSelectionRange(0,0)

Open sanjeev-rajput opened this issue 6 months ago • 2 comments

i am unable to use setSelectionRange(0,0) on a textarea component tried on both jewel and spectrum

tried all these option input.text = ""; // Clear the box input.focus();// Set focus above two works fine

  1. input.element.setselectionRange(0, 0); // - NOT ACCEPTING
  2. document.getElementById("input").setSelectionRange(0, 0); // - NOT ACCEPTING
  3. var nativeInput:* = input.element as Object; if (nativeInput && nativeInput.setSelectionRange != null) { nativeInput.setSelectionRange(0, 0); }

tried all 3 options none works - plz suggest some

sanjeev-rajput avatar Jul 03 '25 11:07 sanjeev-rajput