Skip to content

Commit f3d797f

Browse files
committed
grid.column.AnimatedChange: onRecordChange() => animation no longer showing up #6566
1 parent c638cf8 commit f3d797f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/grid/column/AnimatedChange.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ class AnimatedChange extends Column {
5353
* @param {Neo.data.Model} data.model The model instance of the changed record
5454
* @param {Object} data.record
5555
*/
56-
onRecordChange({fields, record}) {
56+
async onRecordChange({fields, record}) {
5757
let me = this,
5858
{view} = me.parent,
5959
cellId, field, node;
6060

6161
for (field of fields) {
6262
if (field.name === me.dataField) {
63+
// Wait for the next animation frame
64+
await me.timeout(20);
65+
6366
cellId = view.getCellId(record, me.dataField);
6467
node = VdomUtil.find(view.vdom, cellId)?.vdom;
6568

0 commit comments

Comments
 (0)