Material-table: Readonly columns in editable table not working

Created on 2 May 2019  路  3Comments  路  Source: mbrn/material-table

Describe the bug
When using the readonly property on column in a editable table, the column can still be modified. The demo it's the perfect example that showcase the bug. I remember this was working in previous versions.

bug

Most helpful comment

Found on the source code that this property is now called "editable" and you can set it to one of this: 'always' | 'onUpdate' | 'onAdd' | 'never'. Please update the docs and the demo!

All 3 comments

Found on the source code that this property is now called "editable" and you can set it to one of this: 'always' | 'onUpdate' | 'onAdd' | 'never'. Please update the docs and the demo!

Hi @terapepo ,

I updated docs. It will be published tomorrow.

I see that on https://material-table.com/#/docs/all-props in the column prop section "readonly" is still a field, is this intentional?

Was this page helpful?
0 / 5 - 0 ratings