mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
feat: add first-class support for CJK (#8530)
This commit is contained in:
@ -2150,11 +2150,12 @@ class App extends React.Component<AppProps, AppState> {
|
||||
editingTextElement = null;
|
||||
}
|
||||
|
||||
this.setState((state) => {
|
||||
// using Object.assign instead of spread to fool TS 4.2.2+ into
|
||||
// regarding the resulting type as not containing undefined
|
||||
// (which the following expression will never contain)
|
||||
return Object.assign(actionResult.appState || {}, {
|
||||
this.setState((prevAppState) => {
|
||||
const actionAppState = actionResult.appState || {};
|
||||
|
||||
return {
|
||||
...prevAppState,
|
||||
...actionAppState,
|
||||
// NOTE this will prevent opening context menu using an action
|
||||
// or programmatically from the host, so it will need to be
|
||||
// rewritten later
|
||||
@ -2165,7 +2166,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
theme,
|
||||
name,
|
||||
errorMessage,
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
didUpdate = true;
|
||||
|
Reference in New Issue
Block a user