Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: TextArea - Provide selectionStart and SelectionEnd #8896

Open
1 task done
pop1989bb opened this issue May 2, 2024 · 6 comments
Open
1 task done
Labels
enhancement New feature or request TOPIC RL

Comments

@pop1989bb
Copy link

Feature Request Description

For some cases it would be great to have the selectionStart and selectionEnd attributes from the native html textarea component.

Proposed Solution

Provide the access to the native attributes selectionStart and selectionEnd.

Proposed Alternatives

No response

Organization

No response

Additional Context

No response

Priority

None

Privacy Policy

  • I’m not disclosing any internal or sensitive information.
@PetyaMarkovaBogdanova PetyaMarkovaBogdanova self-assigned this May 2, 2024
@PetyaMarkovaBogdanova PetyaMarkovaBogdanova added enhancement New feature or request TOPIC RL labels May 2, 2024
@PetyaMarkovaBogdanova PetyaMarkovaBogdanova added this to New in Planning - Topic RL via automation May 2, 2024
@PetyaMarkovaBogdanova
Copy link
Contributor

Hi colleagues,
can you, please, review this enhancement request regarding ui5-textarea?
Thank you!
Best regards,
Petya Markova.
(UI5 Dispatcher)

@PetyaMarkovaBogdanova PetyaMarkovaBogdanova removed their assignment May 2, 2024
@texttechne
Copy link

Hi,

I had the same requirement for plain input fields: see #4620

The proposed workaround was along these lines:
e.currentTarget.shadowRoot.querySelector("input").selectionStart

@pop1989bb
Copy link
Author

ok. Then lets hope that they will implement it in future.

@hristop
Copy link
Contributor

hristop commented May 8, 2024

@pop1989bb ,

Is the requirement regarding the TextArea or the Input field?
I am asking as we have the selection event exposed in the TextArea and we can provide a util code, which will provide the coordinates of the selection start / end.

If you need it in the input component, we are still to introduce it there.

@pop1989bb
Copy link
Author

@hristop
For the textArea. This would be great!
For the Input component it could be interesting for @texttechne

Kind regards

@texttechne
Copy link

@hristop,
yeah I would love to have the very same API for the input field as well. Also would stress the point of consistency.
I tried to make my point for the input field in #4620. selectionStart and selectionEnd are needed to realize stuff like an Input Mask component, for example...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request TOPIC RL
Development

No branches or pull requests

4 participants