Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

Hidden Checkbox in Tabs #405

Closed mishantrop closed 1 year ago

mishantrop commented 1 year ago

MODX 3.0.2-pl

Tabs config:

[
    {
        "caption": "Hello world",
        "fields": [
            {
                "caption": "Published",
                "field": "published",
                "dataIndex": "published",
                "inputTVtype": "checkbox"
            }
        ]
    }
]

Columns config:

[
    {
        "header": "Published",
        "dataIndex": "published",
        "editor": "this.textEditor",
        "renderer": "this.renderClickCrossTick"
    }
]

Actual result

Снимок экрана 2023-01-14 в 22 57 45 Снимок экрана 2023-01-14 в 22 57 58

Expected result

Снимок экрана 2023-01-14 в 22 59 25

Why checkbox is hidden:

Because of opacity: 0 and possibly position: absolute.

Снимок экрана 2023-01-14 в 22 58 43

What if you comment out the extra styles:

Снимок экрана 2023-01-14 в 22 59 21 Снимок экрана 2023-01-14 в 22 59 25
halftrainedharry commented 1 year ago

I believe you have to specify the "Input Option Values" of the checkbox to get it displayed in the update window.

For example:

"inputOptionValues":"published==1"
mishantrop commented 1 year ago

@halftrainedharry thank you and sorry for my inattention