fix the need to double click on style items
This commit is contained in:
parent
da66eeccc4
commit
a0f6bfcff2
@ -818,6 +818,16 @@ export default function Whiteboard(props) {
|
||||
setIsPanning(false);
|
||||
}
|
||||
|
||||
if (reason && reason.includes('ui:toggled_is_loading')) {
|
||||
e?.patchState(
|
||||
{
|
||||
appState: {
|
||||
currentStyle,
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
e?.patchState(
|
||||
{
|
||||
appState: {
|
||||
@ -878,16 +888,6 @@ export default function Whiteboard(props) {
|
||||
setCurrentStyle({ ...currentStyle, ...command?.after?.appState?.currentStyle });
|
||||
}
|
||||
|
||||
if (command?.id?.includes('change_page')) {
|
||||
app?.patchState(
|
||||
{
|
||||
appState: {
|
||||
currentStyle,
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
const changedShapes = command.after?.document?.pages[app.currentPageId]?.shapes;
|
||||
if (!isMounting && app.currentPageId !== curPageId) {
|
||||
// can happen then the "move to page action" is called, or using undo after changing a page
|
||||
|
Loading…
Reference in New Issue
Block a user