作成日: 2024/04/26 最終更新日: 2024/05/31
文書種別
不具合
状況
修正済み
詳細
filterDialogVisibleInfoのlistFilterAreaをfalse、Workbookクラスのoptions.useTouchLayoutをtrueに設定している場合、フィルタを開くと下記のエラーが発生し、フィルタダイアログを操作できなくなります。
エラー内容:
gc.spread.sheets.all.min.js:12 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
回避方法
SpreadJS (Ver.17.0.10)で修正済み。
Ver.17.0.10より前のバージョンでは、シートを初期化する前に以下のコードを追加します。
let oldCssFn = GC.Spread.Sheets.GC$.prototype.css;
GC.Spread.Sheets.GC$.prototype.css = function (cssName, cssValue) {
if (this.length === 0) {
if (arguments.length === 1) {
return null;
} else if (arguments.length === 2) {
return this;
}
}
return oldCssFn.apply(this, arguments);
}