Skip to content

[Question] Control Refs AttributeError for Row and Column if ".current.controls." is not in a "def XXX(e)" #1519

Closed Answered by ndonkoHenri
heximing asked this question in Q&A
Discussion options

You must be logged in to vote

You need to place greetings.control.... after the page.add(...) for it to work.
The refs first need to be registered (as in your ref=greetings) before used. Before this 'binding' the ref.current is None since it is not connected to a control.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by heximing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants