Skip to content

Instantly share code, notes, and snippets.

@duncanmak
Created June 8, 2014 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duncanmak/fded1f71657620a13849 to your computer and use it in GitHub Desktop.
Save duncanmak/fded1f71657620a13849 to your computer and use it in GitHub Desktop.
# Initially, the focus is on row 0, cell 0.
Focusing <input data-reactid=​".0.3.1.0.1.$row0.1:​$cell0.0">​
activeElement <input data-reactid=​".0.3.1.0.1.$row0.1:​$cell0.0">​
# Press Tab, and now focus moves to row 0, cell 1,
Focusing <input data-reactid=​".0.3.1.0.1.$row0.1:​$cell1.0">​
activeElement <input data-reactid=​".0.3.1.0.1.$row0.1:​$cell1.0">​
# Ask for document.activeElement in Console, and it's row 0, cell 2.
document.activeElement <input type=​"checkbox" data-reactid=​".0.3.1.0.1.$row0.2.0">​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment