Skip to content

fix(dropdown): double hide transition breaks upward out#2818

Merged
lubber-de merged 1 commit intofomantic:developfrom
lubber-de:dropdownAutoTransitionUpward
Jun 11, 2023
Merged

fix(dropdown): double hide transition breaks upward out#2818
lubber-de merged 1 commit intofomantic:developfrom
lubber-de:dropdownAutoTransitionUpward

Conversation

@lubber-de
Copy link
Copy Markdown
Member

@lubber-de lubber-de commented Jun 9, 2023

Description

When a dropdown hides, the transition gets called twice messing up with upward menus and underlaying menu transparency.
This is because submenu hiding needs to be called separately (invented by #2331 ) , but in case a select is used the submenu is the dropdown itself, so it should not be (hide) animated again when it is already (hide) animating

Testcase

https://jsfiddle.net/lubber/Ld624p5m/

Closes

#2663

Replaces

#2777

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug state/awaiting-reviews Pull requests which are waiting for reviews javascript labels Jun 9, 2023
@lubber-de lubber-de added this to the 2.9.3 milestone Jun 9, 2023
Copy link
Copy Markdown
Member

@ko2in ko2in left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lubber-de lubber-de merged commit cd6c308 into fomantic:develop Jun 11, 2023
@lubber-de lubber-de deleted the dropdownAutoTransitionUpward branch June 11, 2023 19:05
@lubber-de lubber-de removed the state/awaiting-reviews Pull requests which are waiting for reviews label Jun 11, 2023
@lubber-de lubber-de added lang/javascript Anything involving JavaScript and removed javascript labels Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/javascript Anything involving JavaScript type/bug Any issue which is a bug or PR which fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants