Skip to content

Feature request: disable OK button in dialog if textToValue returns null in TextFieldPreference #17

Description

@MMauro94

Hello. Thanks for the great library!

Currently, if the textToValue lambda retuns null pressing the OK button has no effect. This is a kinda roundabout way of validating the input, but it yields a poor UX.

Would you consider disabling the OK button in this case?

This would require calculating textToValue at each value update, so maybe a different isValid lambda could be provided for this use-case.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions