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

fix: handle publish locale with autosave enabled and close dropdown #8719

Merged
merged 4 commits into from
Nov 6, 2024

Conversation

JessChowdhury
Copy link
Member

  1. Fix publish specific locale option when no published versions exist
  2. Close the publish locale dropdown on click

Copy link
Contributor

@DanRibbens DanRibbens left a comment

Choose a reason for hiding this comment

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

I'm not sure I understand and it'd be helpful to have an int test so we can support the change made.

Copy link
Contributor

@DanRibbens DanRibbens left a comment

Choose a reason for hiding this comment

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

Not a blocker, but one thing I thought to point out.

@@ -139,7 +139,7 @@ export const DefaultPublishButton: React.FC<{ label?: string }> = ({ label: labe
if (isActive) {
return (
<PopupList.ButtonGroup key={locale.code}>
<PopupList.Button onClick={() => publishSpecificLocale(locale.code)}>
<PopupList.Button onClick={() => [publishSpecificLocale(locale.code), close()]}>
Copy link
Contributor

Choose a reason for hiding this comment

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

The array is a bit strange, probably should be avoided. I'd expect it to be onClick={() => { publishSpecificLocale(locale.code); close(); }}> or similar.

@DanRibbens DanRibbens merged commit 7dc5256 into beta Nov 6, 2024
49 checks passed
@DanRibbens DanRibbens deleted the fix/publish-locale-autosave branch November 6, 2024 19:36
Copy link
Contributor

github-actions bot commented Nov 6, 2024

🚀 This is included in version v3.0.0-beta.126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants