Fixes LOG-3134
@@ -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])
@@ -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 = ''
@@ -2166,7 +2166,6 @@
meta? (util/meta-key? e)
forbidden-edit? (target-forbidden-edit? target)]
(when (and (not forbidden-edit?) (contains? #{1 0} button))
- (util/stop-propagation e)
(let [selection-blocks (state/get-selection-blocks)
starting-block (state/get-selection-start-block-or-first)]
(cond
@@ -284,6 +284,7 @@
{:blockType (if (parse-uuid (str block-id)) "B" "P")
:id (str (d/squuid))
:compact false
+ ;; Why calling it pageId when it's actually a block id?
:pageId (str block-id)
:point point
:size [400, 0]