Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

257
Views
How to trigger onSelectionChange only when caret moves but input has not changed?

I have an use case in my React Native app (trying to implement mentions) where I need to call a function on the event of onSelectionChange only when the text in the input has not changed but the caret was moved.

At the moment the onSelectionChange function is called when I write as well, but I need it to be called only when the caret was movet without writing anything inside the input.

Is that possible? Sorry I don't really have any code to show for it since I explained what I need, but I did not find anything to check of the caret was moved without adding any new text?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you should try something like onblur

https://reactnative.dev/docs/textinput#onendediting

https://reactnative.dev/docs/textinput#onblur

this will trigger when you leave the field, you can write your validation in the callback method.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!