Checkbox clicks not working anymore?
Posted: Thu Oct 24, 2019 10:18 am
For some reasons, click actions don't work anymore on checkboxes. It used to work, but now I cannot get it running.
I've tried different selectors, but none seems to do the job anymore.
The other fields seem ok.
Ext.ComponentQuery.query delivers the object but the click action doesn't work.
Any ideas?
A demo test-case. Using, Extjs 6.7 Modern and Siesta-Lite
I've tried different selectors, but none seems to do the job anymore.
The other fields seem ok.
Ext.ComponentQuery.query delivers the object but the click action doesn't work.
Any ideas?
A demo test-case. Using, Extjs 6.7 Modern and Siesta-Lite
StartTest(function (t) {
Ext.Viewport.removeAll(true);
Ext.Viewport.add({
xtype: 'formpanel',
items: [
{
xtype: 'checkboxfield',
name: 'tomato',
label: 'Tomato',
value: 'tomato',
checked: true
}, {
xtype: 'checkboxfield',
name: 'salami',
label: 'Salami'
}, {
xtype: 'togglefield',
label: 'Toggle'
}
]
});
t.pass('View could be rendered');
console.log(Ext.ComponentQuery.query('field[label=Tomato]'));
t.chain(
{ click: '>> togglefield => .x-component' },
{ click: '>> field[label=Tomato]' },
{ click: '>> checkbox' }
);
});