Skip to content
Discussion options

You must be logged in to vote

OK, I figured it out. The tap event fires before the select event, so the select event fires after tap with only the original element I tap on. Everything I try to select in the tap event is then ignored/overwritten by the select event with the old data.

My solution is to use a timer with 1ms:
setTimeout(() => cy.nodes().select(), 1)
and that works fine

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by igordata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant