-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
JessChowdhury
commented
Oct 15, 2024
- Fix publish specific locale option when no published versions exist
- Close the publish locale dropdown on click
There was a problem hiding this 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.
There was a problem hiding this 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()]}> |
There was a problem hiding this comment.
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.
🚀 This is included in version v3.0.0-beta.126 |