mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Fix TypeError: Cannot read properties of null (reading 'replace')
Fixes unable to edit tracker in mobile view.
This commit is contained in:
parent
82ae5aa939
commit
ac1d8b6be8
@ -521,7 +521,7 @@ export class et2_grid extends et2_DOMWidget implements et2_IDetachedDOM, et2_IAl
|
|||||||
// Apply widget's class to td, for backward compatability
|
// Apply widget's class to td, for backward compatability
|
||||||
if (node.getAttribute("class"))
|
if (node.getAttribute("class"))
|
||||||
{
|
{
|
||||||
let widget_class = this.getArrayMgr("content").expandName(node.getAttribute("class"))
|
let widget_class = (this.getArrayMgr("content").expandName(node.getAttribute("class")) || "")
|
||||||
// Do not pass et2_required into parent cell, it looks bad
|
// Do not pass et2_required into parent cell, it looks bad
|
||||||
.replace("et2_required", "")
|
.replace("et2_required", "")
|
||||||
cell.class += (cell.class ? " " : "") + widget_class;
|
cell.class += (cell.class ? " " : "") + widget_class;
|
||||||
|
Loading…
Reference in New Issue
Block a user