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

Don't treat input/output as draggable inside of absolutePanel(draggable = T) #3937

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Oct 31, 2023

Closes #3933
Closes #3752

As a side note, it'd be nice if draggable could be a list of options for the draggable() method, but to do that properly (i.e., support JS functions, per element options, etc) would be non-trivial, and probably best be done via a web component (which could fix other problems with this approach, such as every element with a .draggable class getting instiantiated everytime a draggable element gets rendered).

For now, since we mainly want a targeted fix for #3933, we'll just add a smarter default behavior to prevent input/outputs from being draggable (so we also #3752 for free, virtually).

…t clicks on inputs and widgets from getting unneccesarily swallowed when absolutePanel(draggable = T)
@cpsievert cpsievert force-pushed the jqui-draggable-cancel branch from 7600835 to bdfcefc Compare October 31, 2023 23:13
@cpsievert cpsievert requested a review from gadenbuie October 31, 2023 23:45
R/jqueryui.R Outdated Show resolved Hide resolved
@cpsievert cpsievert changed the title Prevent absolutePanel(draggable = T) from interfering with click/drag events on input/output children Don't treat input/output as draggable inside of absolutePanel(draggable = T) Nov 1, 2023
@cpsievert cpsievert merged commit b129739 into main Nov 1, 2023
10 of 11 checks passed
@cpsievert cpsievert deleted the jqui-draggable-cancel branch November 1, 2023 15:42
cpsievert added a commit to posit-dev/py-shiny that referenced this pull request Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants