-
Hi everyone, I don't get what I'm doing wrong. Simple code I'm open to any ideas, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK, I figured it out. The My solution is to use a timer with 1ms: |
Beta Was this translation helpful? Give feedback.
OK, I figured it out. The
tap
event fires before theselect
event, so theselect
event fires aftertap
with only the original element I tap on. Everything I try to select in thetap
event is then ignored/overwritten by theselect
event with the old data.My solution is to use a timer with 1ms:
setTimeout(() => cy.nodes().select(), 1)
and that works fine