fix: can't type space in a whiteboard block

Fixes LOG-3134
This commit is contained in:
Tienson Qin
2024-06-05 09:43:21 +08:00
parent 9c48753eaf
commit ef92c0be63
4 changed files with 4 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ export const QuickLinks: TLQuickLinksComponent<Shape> = observer(({ shape }) =>
// do not show links for the current page
return links.filter(
link =>
link[0].toLowerCase() !== app.currentPage.name &&
handlers.getBlockPageName(link[0]) !== app.currentPage.name
link[0].toLowerCase() !== app.currentPage.id &&
link[0] !== shape.props.pageId
)
}, [shape.props.id, shape.props.type, shape.props.parentId, shape.props.refs])

View File

@@ -17,7 +17,7 @@ export class TLSettings implements TLSettingsProps {
@observable mode: 'dark' | 'light' = 'light'
@observable showGrid = true
@observable snapToGrid = true
@observable snapToGrid = false
@observable penMode = false
@observable scaleLevel = 'md'
@observable color = ''