how to clear Input type? #3427
-
How I compose yield Input(id='amount_input', placeholder='Amount') then I attempt to clear it later as follows self.query_one('#amount_input').clear() and I get
so my question is, how to clear the |
Beta Was this translation helpful? Give feedback.
Answered by
marekyggdrasil
Sep 29, 2023
Replies: 2 comments 2 replies
-
Alright so I just did self.query_one('#amount_input').value = '' seems to be ok... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
davep
-
The clue is in your question. ;-) self.query_one('#amount_input').value = "" |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alright so I just did
seems to be ok...