Skip to content

Commit

Permalink
allow isSeparator because it's useful to put a Separator in a GridCell
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Aug 14, 2024
1 parent 0b0f04e commit ec885b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/layout/constraints/GridCell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ export default class GridCell extends GridConfigurable( MarginLayoutCell ) {
}, providedOptions );

assert && Object.keys( options ).forEach( key => {
assert && assert( GRID_CELL_KEYS.includes( key ), `Cannot provide key ${key} to a GridCell's layoutOptions. Perhaps this is a Flow-style layout option?` );
assert && assert( GRID_CELL_KEYS.includes( key ) || key === 'isSeparator',
`Cannot provide key ${key} to a GridCell's layoutOptions. Perhaps this is a Flow-style layout option?` );
} );

assert && assert( typeof options.column === 'number' && Number.isInteger( options.column ) && isFinite( options.column ) && options.column >= 0 );
Expand Down

0 comments on commit ec885b2

Please sign in to comment.