Layout ยท console.warn
layout: setInteractive() takes a boolean, or an object of {movable, resizable, closable}; {type} was ignored.
Printed by Layout, prefixed [lattice], since 1.53.0.
Warnings reference › layout.setInteractive.type
- Identifier
layout.setInteractive.type- Raised by
- Layout
- Since
- 1.53.0
What happened
setInteractive() was called with something that is neither a boolean nor an object. Nothing was changed - the call returns the values currently in force - so the dashboard is neither locked nor unlocked by it. Passing null or a string is the usual mistake.
The fix
Pass true/false to set all three capabilities at once, or an object naming the ones to change.
The smallest fix
layout.setInteractive({ movable: false, resizable: false });
Reference
Covered in full at the API reference.