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

Text cells show as dirty changes when reverting values to empty string #9802

Closed taauntik closed 3 weeks ago

taauntik commented 1 month ago

Forum post

Hi there,

We've encountered a bug with the dirty state for text columns in Bryntum Grid 5.6.4.

The issue is that text columns (with no specified type) without a value show as dirty / detect changes when the value is updated (set to a non empty string value) and then reverted to an empty string.

This is only a present when clearing values and does not occur when reverting a value that is not an empty string.

Reproducible in the cell edit demo example https://www.bryntum.com/products/grid/examples/celledit/ by adding a new column to the columns array, e.g:

columns : [
    { text : 'Test' }
],

This doesn't look to affect other column types, tested the same scenario with date / number columns and they clear the dirty state as expected.

Reproduction steps:

Is this a known issue and do you have any suggestions for a workaround?

Thanks, Callum