[BUG]: Unable to Select Cell in Report when clicking on the Cell

オープン
#108 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
frontend

調査の方向性

レポート内のセルをクリックして問題を再現し、コンソールエラーを確認します。まず frappe-datatable.cjs.js の clearSelection、focusCell、bindMouseEvents から始め、次に query_report.js の render_datatable エントリポイントを追跡します。レポートのセルを $cell is null エラーなしで選択できれば完了です。

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

説明

Unable to click on the cell of a report its not getting selected. The issue is coming on the js console as well and the console error is below:

Uncaught TypeError: $cell is null
    clearSelection frappe-datatable.cjs.js:2910
    clearSelection frappe-datatable.cjs.js:2910
    focusCell frappe-datatable.cjs.js:2741
    bindMouseEvents frappe-datatable.cjs.js:2684
    delegate frappe-datatable.cjs.js:74
    delegate frappe-datatable.cjs.js:70
    on frappe-datatable.cjs.js:55
    bindMouseEvents frappe-datatable.cjs.js:2682
    bindEvents frappe-datatable.cjs.js:2553
    CellManager frappe-datatable.cjs.js:2545
    initializeComponents frappe-datatable.cjs.js:5609
    DataTable frappe-datatable.cjs.js:5556
    render_datatable query_report.js:750
    refresh query_report.js:609
    promise callback*refresh query_report.js:557
    throttle desk.min.js:5070
    onchange query_report.js:480
    set base_control.js:158
    promise callback*frappe.run_serially/< desk.min.js:1004
    run_serially desk.min.js:1002
    set base_control.js:151
    validate_and_set_in_model base_control.js:173
    parse_validate_and_set_in_model base_control.js:141
    setup_awesomeplete link.js:229
    jQuery 8
    make_input link.js:39
    Class.extend/proto[name]</< desk.min.js:65
    make_input base_input.js:60
    refresh_input base_input.js:87
    refresh base_control.js:85
    add_field desk.min.js:6850
    filters query_report.js:450
    setup_filters query_report.js:447
    refresh_report query_report.js:338
    promise callback*frappe.run_serially/< desk.min.js:1004
    run_serially desk.min.js:1002
    refresh_report query_report.js:337
    load_report query_report.js:130
frappe-datatable.cjs.js:2910:27

Let me know if more details for the error are needed.

主要言語
JavaScript
スター
1.3k
フォーク
223
平均マージ
23時間 14分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

frappe/datatable のほかの issue

frappe/datatable の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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