Skip to content

Disabled TextInput should still allow mouse interaction, selection and copying #1880

Description

@earshinov

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

impl iced::Application for MyApp {
    pub fn view(&self) -> iced::Element<Message> {
        TextInput::new("", "Test")
    }
}

image

Copying text from readonly/disabled text input is useful and, from perspective of building UI, it is one of the reasons to use readonly/disabled text input (TextInput::new()) instead of a plain text label (Text::new).

Comparison

Web:

image

Native Windows:

image

What is the expected behavior?

I would expect:

  1. Enabled mouse interaction
  2. "Arrow" cursor
  3. Being able to select text
  4. Being able to copy selected text

Version

0.7

Operative System

Windows

Do you have any log output?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions