Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

fix: honor snackbar dialog input.open if type boolean#2479

Closed
janenath wants to merge 2 commits intoeBay:15.3.0from
janenath:snackbar-dialog-on-input-fix
Closed

fix: honor snackbar dialog input.open if type boolean#2479
janenath wants to merge 2 commits intoeBay:15.3.0from
janenath:snackbar-dialog-on-input-fix

Conversation

@janenath
Copy link

Description

Fix logic for ebay-snackbar-dialog onInput() function to correctly update open state based on input

Context

Updating ebay-snackbar-dialog open input to false, <ebay-snackbar-dialog open=state.open />, does not close the snackbar component. The current logic is overriding input.open to use this.state.open if input.open is falsy, preventing the snackbar from closing. This code change honors input.open if it's type boolean before falling back to this.state.open.

References

Issue: eBay/evo-web#7

Screenshots

Before

Screen.Recording.2025-04-10.at.10.17.09.AM.mov

After

snackbar-fix.mov

@changeset-bot
Copy link

changeset-bot bot commented Apr 10, 2025

🦋 Changeset detected

Latest commit: 816597f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ebay/ebayui-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@LuLaValva LuLaValva changed the base branch from master to 15.3.0 April 10, 2025 17:44
Copy link
Member

@LuLaValva LuLaValva left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for finding & fixing the bug!

@agliga agliga closed this Apr 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ebay-snackbar-dialog: don't override input.open set to false

3 participants