You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This caused cases where when we used LayerProvider to send other dialogs to live under our root dialog (like rendering a dropdown inside a dialog), we got a click outside trigger everytime a user chose something on the dropdown.
this should fix it.
A new prerelease version of this PR has been published! 🎉
To install this prerelease version, run the following command in your terminal with any one of the packages changed in this PR:
Verify that changing the forwarded ref target from the content div to the wrapper span does not break consumers that depended on measuring or focusing the inner content element.
<span// don't remove old classname - override from MonolithclassName={cx("monday-style-dialog-content-wrapper",styles.contentWrapper,wrapperClassName)}ref={mergedWrapperRef}data-testid={dataTestId}style={styleObject}onClickCapture={onClick}data-popper-reference-hidden={isReferenceHidden}><CSSTransitionclassNames={transitionOptions.classNames}nodeRef={contentRef}in={isOpen}appear={!!animationType}
Ensure attaching useClickOutside to the wrapper span correctly includes all interactive areas (padding, arrows) but does not capture clicks inside nested dialogs or portals unintentionally.
// Watch the wrapper ref to include padding area, tooltip arrows, and nested DialogsuseClickOutside({callback: onOutSideClick,ref: wrapperRef});useClickOutside({eventName: "contextmenu",callback: overrideOnContextMenu,ref: wrapperRef});constselectorToDisable=typeofdisableContainerScroll==="string" ? disableContainerScroll : containerSelector;
Confirm that CSSTransition’s nodeRef now pointing to the content div aligns with how the transition classes are applied and that mounting/unmounting behavior remains correct.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This caused cases where when we used LayerProvider to send other dialogs to live under our root dialog (like rendering a dropdown inside a dialog), we got a click outside trigger everytime a user chose something on the dropdown.
this should fix it.
https://monday.monday.com/boards/3532714909/pulses/18233338168