We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b057075 + b302c57 commit ca007adCopy full SHA for ca007ad
src/dd-draggable.ts
@@ -280,7 +280,7 @@ export class DDDraggable extends DDBaseImplement implements HTMLElementExtendOpt
280
/** @internal call when keys are being pressed - use Esc to cancel, R to rotate */
281
protected _keyEvent(e: KeyboardEvent): void {
282
const n = this.el.gridstackNode as GridStackNodeRotate;
283
- if (!n) return;
+ if (!n?.grid) return;
284
const grid = n.grid;
285
286
if (e.key === 'Escape') {
0 commit comments