-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextArea
still has a cursor, until it's had focus and then lost it
#4109
Comments
Cheers - I reckon this will be changing a True to a False somewhere 😄 |
I had a quick look at this and found that if you set from textual.app import App, ComposeResult
from textual.widgets import Input, TextArea
class TextAreaCursorApp(App[None]):
def compose(self) -> ComposeResult:
input = Input()
text_area = TextArea()
input.cursor_blink = False
text_area.cursor_blink = False
yield input
yield text_area
if __name__ == "__main__":
TextAreaCursorApp().run() Then I spotted that the textual/src/textual/widgets/_text_area.py Lines 1291 to 1292 in 6459878
EDIT: Ah-ha, I missed that it also has this watch method! textual/src/textual/widgets/_text_area.py Lines 523 to 525 in 6459878
|
Oh yeah, the I was thinking initialising |
Just to note for whoever picks this up (maybe me!), potentially any fix should also account for this issue: |
Sorry I'm not sure I fully understand this - is that just the old implementation, or related to #2476? |
Sorry, I meant the |
I'm going to pick this up now. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Sort of related to #3722: a
TextArea
still has a cursor when not focused, if it hasn't received focus yet. For example, this code:starts up looking like this:
The text was updated successfully, but these errors were encountered: