Skip to content

开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.

feat(clean-confirm): autoFocus ok button

pubuzhixing8582172a0b0b9
diff --git a/packages/drawnix/src/components/clean-confirm/clean-confirm.tsx b/packages/drawnix/src/components/clean-confirm/clean-confirm.tsx
index 83e7f69..27087e1 100644
--- a/packages/drawnix/src/components/clean-confirm/clean-confirm.tsx
+++ b/packages/drawnix/src/components/clean-confirm/clean-confirm.tsx
@@ -33,6 +33,7 @@ export const CleanConfirm = ({
</button>
<button
className="clean-confirm__button clean-confirm__button--ok"
+ autoFocus
onClick={() => {
board.deleteFragment(board.children);
setAppState({ ...appState, openCleanConfirm: false });