0

I am using Android Compose ExposedDropdownMenu, but its text can be selected with a long press. Using DisableSelection section does NOT help at all:

DisableSelection {
        ExposedDropDownmenu(){...}
}

How to disable the text selection for this case or deselect any selection detected? Thanks

1 Answer 1

0

I think the problem here is that ExposedDropdownMenu creates a new Popup, which is a new window, try placing the DisableSelection composable inside the content of the Dropdown

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.