Remove unnecessary is_disabled check in text_input::draw

A disabled `TextInput` cannot be focused.
This commit is contained in:
Héctor Ramón Jiménez 2023-04-12 04:25:02 +02:00
parent 70e4af46aa
commit 6b8548869e
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -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 {