fix: Don't show save file to disk when UIOptions.canvasActions.export.saveFileToDisk is false (#4073)
This commit is contained in:
parent
571be9c0fe
commit
bc88cf5002
@ -33,6 +33,8 @@ Please add the latest change on the top under the correct section.
|
|||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
||||||
|
- Don't show save file to disk button in export dialog when `saveFileToDisk` passed as `false` in [`UIOptions.canvasActions.export`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#exportOpts).
|
||||||
|
|
||||||
- [`onPaste`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onPaste) prop should return false to prevent the native excalidraw paste action [#3974](https://github.com/excalidraw/excalidraw/pull/3974).
|
- [`onPaste`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#onPaste) prop should return false to prevent the native excalidraw paste action [#3974](https://github.com/excalidraw/excalidraw/pull/3974).
|
||||||
|
|
||||||
#### BREAKING CHANGE
|
#### BREAKING CHANGE
|
||||||
|
@ -47,7 +47,7 @@ const Excalidraw = (props: ExcalidrawProps) => {
|
|||||||
|
|
||||||
if (canvasActions?.export) {
|
if (canvasActions?.export) {
|
||||||
UIOptions.canvasActions.export.saveFileToDisk =
|
UIOptions.canvasActions.export.saveFileToDisk =
|
||||||
canvasActions.export?.saveFileToDisk ||
|
canvasActions.export?.saveFileToDisk ??
|
||||||
DEFAULT_UI_OPTIONS.canvasActions.export.saveFileToDisk;
|
DEFAULT_UI_OPTIONS.canvasActions.export.saveFileToDisk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user