@manuscripts/style-guide 0.31.29 → 0.31.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,7 @@ const EditorHeader = ({ handleSnapshot, submission, hasPendingSuggestions, userR
74
74
  ]);
75
75
  const onTransitionClick = (0, react_1.useCallback)((event) => {
76
76
  toggleConfirmationDialog(true);
77
- setSelectedTransitionIndex(event.target.value);
77
+ setSelectedTransitionIndex(event.target.value || event.target.parentNode.value);
78
78
  }, [setSelectedTransitionIndex, toggleConfirmationDialog]);
79
79
  const onCancelClick = (0, react_1.useCallback)(() => {
80
80
  toggleConfirmationDialog(false);
@@ -49,7 +49,7 @@ export const EditorHeader = ({ handleSnapshot, submission, hasPendingSuggestions
49
49
  ]);
50
50
  const onTransitionClick = useCallback((event) => {
51
51
  toggleConfirmationDialog(true);
52
- setSelectedTransitionIndex(event.target.value);
52
+ setSelectedTransitionIndex(event.target.value || event.target.parentNode.value);
53
53
  }, [setSelectedTransitionIndex, toggleConfirmationDialog]);
54
54
  const onCancelClick = useCallback(() => {
55
55
  toggleConfirmationDialog(false);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/style-guide",
3
3
  "description": "Shared components for Manuscripts applications",
4
- "version": "0.31.29",
4
+ "version": "0.31.30",
5
5
  "repository": "gitlab:atypon-opensource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",