Skip to content

Commit

Permalink
Remove unnecessary is_disabled check in text_input::draw
Browse files Browse the repository at this point in the history
A disabled `TextInput` cannot be focused.
  • Loading branch information
hecrj committed Apr 12, 2023
1 parent 70e4af4 commit 6b85488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/widget/text_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ pub fn draw<Renderer>(
% 2
== 0;

let cursor = if is_cursor_visible && !is_disabled {
let cursor = if is_cursor_visible {
Some((
renderer::Quad {
bounds: Rectangle {
Expand Down

0 comments on commit 6b85488

Please sign in to comment.