Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Ctrl+; with a property value row in the block selection throws in toggle-collapse!

オープン 初心者向け
#1,360 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
clojure
領域
frontend

調査の方向性

src/main/frontend/handler/editor.cljs の toggle-collapse! から始め、選択処理を src/main/frontend/util.cljc の util/selection-node-block-id および src/main/frontend/components/property.cljs のプロパティ行のマークアップと比較します。選択されたプロパティ値の行で Ctrl+; アクションを再現します。完了条件は、その行がスキップされ、選択されたブロックが TypeError なしに折りたたまれるか展開されることです。

索引モデルが issue の本文から書いたものです。

説明

Steps

Not reduced to hand-written steps. What is known:

  1. Blocks are selected (not editing), and the selection includes a property value row of a block (the rows under a block such as "Status Open", rendered as .ls-block.property-value-container).
  2. Press Ctrl+; (:editor/toggle-block-children, "mod+;").

Expected

The selected blocks collapse or expand, and a selected property row is skipped.

Actual

TypeError: Cannot read properties of null (reading 'toLowerCase') from cljs.core/uuid in frontend.handler.editor/toggle-collapse!, reported to the window as uncaught. Nothing collapses.

Cause (read in code)

In src/main/frontend/handler/editor.cljs, the selection branch of toggle-collapse! computes

(map #(-> % (dom/attr "blockid") uuid) (get-selected-blocks))

The selection holds DOM nodes collected by class ls-block (util/get-blocks-noncollapse, select-all-blocks!), and property value rows carry that class without a blockid attribute (src/main/frontend/components/property.cljs, :div.ls-block.property-value-container). Other selection handlers go through util/selection-node-block-id (src/main/frontend/util.cljc), which reads the inner block of such a row or returns nil, and drop the nils with keep. toggle-collapse! calls uuid on nil instead.

Found by a monkey test (gremlins.js with trusted Playwright input) of the web build of master 16c4ed1a0: seed 105, action 729 (Ctrl+; right after an ArrowUp), and once in a replay of seed 205. Replaying the logged actions of seed 105 up to the failure on a fresh graph reproduced it 1 of 2 times. A text property row did not reproduce it by hand (0 of 2): that row holds an inner block with an id, which is what gets selected.

主要言語
言語のデータがありません
スター
28
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

logseq/db-test のほかの issue

logseq/db-test の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。