Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface OutsideClickDetectorProps {
// A click event's target can be imprecise, as the value will be
// the closest common ancestor of the press (mousedown, touchstart)
// and release (mouseup, touchend) events (often <body />) if
// the the target of each event differs.
// the target of each event differs.
// We need the actual event targets to make the correct decisions
// about user intention. So, consider the down/start and up/end
// items below as the deconstruction of a click event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
StyledTextInput,
} from './InlineItemEditor.styles'


import styles from './styles.module.scss'

type Positions = 'top' | 'bottom' | 'left' | 'right' | 'inside'
Expand Down Expand Up @@ -216,7 +215,10 @@ const InlineItemEditor = (props: Props) => {
{viewChildrenMode ? (
children
) : (
<OutsideClickDetector onOutsideClick={handleClickOutside}>
<OutsideClickDetector
onOutsideClick={handleClickOutside}
isDisabled={isShowApprovePopover}
>
<IIEContainer ref={containerEl}>
<WindowEvent event="keydown" handler={handleOnEsc} />
<FocusTrap disabled={disableFocusTrap}>
Expand Down
Loading