diff --git a/source/Controlled.tsx b/source/Controlled.tsx index f25085db..6b043fd8 100644 --- a/source/Controlled.tsx +++ b/source/Controlled.tsx @@ -3,7 +3,6 @@ import React, { Component, ElementType, ImgHTMLAttributes, - KeyboardEvent, MouseEvent, ReactElement, ReactNode, @@ -153,7 +152,6 @@ class ControlledBase extends Component } {hasImage && elDialogContainer != null && createPortal( - @@ -352,6 +349,7 @@ class ControlledBase extends Component) => { + handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape' || e.keyCode === 27) { e.preventDefault() e.stopPropagation() @@ -585,6 +583,7 @@ class ControlledBase extends Component