Skip to content

Commit 3745bbe

Browse files
committed
fix(button): prevent text selection
1 parent 7f5ed0e commit 3745bbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/textual/widgets/_button.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class Button(Widget, can_focus=True):
4444
4545
"""
4646

47+
ALLOW_SELECT = False
48+
4749
DEFAULT_CSS = """
4850
Button {
4951
width: auto;

0 commit comments

Comments
 (0)