Skip to content

docs: clarify incorrect use of interactive elements as drag handles#997

Open
AlexandreBillereau wants to merge 1 commit into
hello-pangea:mainfrom
AlexandreBillereau:patch-1
Open

docs: clarify incorrect use of interactive elements as drag handles#997
AlexandreBillereau wants to merge 1 commit into
hello-pangea:mainfrom
AlexandreBillereau:patch-1

Conversation

@AlexandreBillereau

Copy link
Copy Markdown

This PR improves the documentation around interactive elements used as drag handles in <Draggable />.

Problem

The current documentation explains that interactive elements (e.g. <button>, <input>) are blocked by default, but it does not clearly highlight a common real-world pitfall:

Using an interactive element (especially <button>) as a drag handle can lead to inconsistent or broken drag behavior.

It took me a long time to figure it out, so I'd like to help others understand it more quickly. Thank you for your consideration.

Best regards, 🇨🇦⚜️

Added warnings and recommendations regarding the use of interactive elements as drag handles in the Draggable component documentation.
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

Successfully merging this pull request may close these issues.

1 participant