bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Setting task.cls using model.set method doesn't update the value and DOM #804

Closed pmiklashevych closed 4 months ago

pmiklashevych commented 4 years ago

https://www.bryntum.com/forum/viewtopic.php?f=44&t=13996#p72268

http://lh/bryntum-suite/scheduler/examples/basic/ Expect scheduler.eventStore.first.set('cls', 'foobar') to add 'foobar' class to the task Dom element similar to scheduler.eventStore.first.cls = 'foobar'

scheduler.eventStore.first.set('cls', 'foobar')
//{cls: {…}}
scheduler.eventStore.first.get('cls')
//"foobar"
scheduler.eventStore.first.cls
//DomClassList {Symbol(dirty): true}Symbol(dirty): trueisDomClassList: (...)length: (...)value: 
scheduler.eventStore.first.cls.value
//""
JeffDerk commented 3 years ago

Also cls.add('test') or cls.remove('test') does not update the DOM.

isglass commented 4 months ago

The main issue here is no longer reproducible, will close the ticket. There is still no deep tracking though as requested in the more recent comment. That would require a new type of field, and would take some effort. If needed, please file a request for that on the forum