Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text in drawer can't be selected #346

Open
dmytro-ulianov opened this issue May 7, 2024 · 5 comments
Open

Text in drawer can't be selected #346

dmytro-ulianov opened this issue May 7, 2024 · 5 comments

Comments

@dmytro-ulianov
Copy link

There was already a similar issue before: #295.

It looks like the #182 (drawer handle component) discards the changes introduced in #314 (block swipe if in wrong direction).

My guess is that this change from #314 was reverted in drawer handle PR and that's the reason why text selection is not working
image

@shrihari-prakash
Copy link

@dmytro-ulianov did you ever find a solution?

@fruityfishy
Copy link

fruityfishy commented May 26, 2024

@shrihari-prakash, following worked for me:

<Drawer.Content className="select-text">
                This is your drawer content
</Drawer.Content>

Basically overriding the user-select with user-select: text;
PS: I am using tailwind user-select but you should be able to use user-select: text; for the drawer content's style.

@shrihari-prakash
Copy link

@fruityfishy , unfortunately, this also does not seem to work for me :(. Does this solution work for you on mobile phones?

@fruityfishy
Copy link

@shrihari-prakash, ah that's unfortunate. I haven't checked on mobile but I can confirm it works on web.

@shrihari-prakash
Copy link

Hello @emilkowalski , would there be any plan to fix this? Or would you possibly know any workarounds that we could try to solve this issue? Would appreciate any clue on how to resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants