Lattice Grid Buy a licence

Layout ยท console.warn

layout: setInteractive({{capability}}) takes a boolean; {value} was ignored.

Printed by Layout, prefixed [lattice], since 1.53.0.

Warnings referencelayout.setInteractive.*

Identifier
layout.setInteractive.*
Raised by
Layout
Since
1.53.0

What happened

One capability in the object handed to setInteractive() carried a value that is not a boolean. Presence alone is not treated as a decision - 0, 'false' and null would each lock a dashboard nobody asked to lock - so that capability was left exactly as it was and the others in the same call were applied. A key that is absent, or present carrying undefined, means "leave this alone" and is not reported.

The fix

Pass real booleans. setInteractive(getInteractive()) is a no-op in every state, so round-tripping the current values is safe.

The smallest fix

layout.setInteractive({ closable: Boolean(user.canClose) });

Reference

Covered in full at the API reference.