CaretRangeFromPoint() Alternative

Viewed 19

enter image description here

Im working on my own project and i use this in my feature to get the word specific in the textarea value just one click, and i see this "Non-standard" and i see this in my React

enter image description here

but in vanilla js it looks not deprecated

enter image description here

My questions is, Is there any method of how can i get a word in a value of textArea in just one click? since this CaretRangeFromPoint() is not a good thing to use based on the documents if am right.

0 Answers
Related