Skip to content

Control effect ordering / dependency #1589

Answered by gbj
pheki asked this question in Q&A
Discussion options

You must be logged in to vote

Does it work if you use request_animation_frame to delay it a tick:

request_animation_frame(move || {
  match input.focus() {
    Ok(()) => log!("Focused"),
    Err(err) => log!("Error focusing input: {:?}", err),
  };
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pheki
Comment options

Answer selected by pheki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants