unable to use TextArea.setSelectionRange(0,0)
- Dominant language
- ActionScript
- Stars
- 380
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported TextArea.setSelectionRange(0, 0) failure in both the Jewel and Spectrum components, then inspect how input.element and document.getElementById("input") are exposed. Confirm the expected selection behavior and document or test the result for both component variants.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100