Improve test coverage and refactor storybook arch (#723)
* Improve test coverage and refactor storybook arch * Fix coverage * Fix tests * Fix lint * Fix lint
This commit is contained in:
@ -43,8 +43,11 @@ export function BoardCardEditableFieldEditMode({
|
||||
}: OwnProps) {
|
||||
const wrapperRef = useRef(null);
|
||||
|
||||
useListenClickOutsideArrayOfRef([wrapperRef], () => {
|
||||
onExit();
|
||||
useListenClickOutsideArrayOfRef({
|
||||
refs: [wrapperRef],
|
||||
callback: () => {
|
||||
onExit();
|
||||
},
|
||||
});
|
||||
|
||||
useScopedHotkeys(
|
||||
|
||||
@ -40,8 +40,11 @@ export function EditColumnTitleInput({
|
||||
}) {
|
||||
const inputRef = React.useRef<HTMLInputElement>(null);
|
||||
|
||||
useListenClickOutsideArrayOfRef([inputRef], () => {
|
||||
onFocusLeave();
|
||||
useListenClickOutsideArrayOfRef({
|
||||
refs: [inputRef],
|
||||
callback: () => {
|
||||
onFocusLeave();
|
||||
},
|
||||
});
|
||||
const setHotkeyScope = useSetHotkeyScope();
|
||||
setHotkeyScope(ColumnHotkeyScope.EditColumnName, { goto: false });
|
||||
|
||||
Reference in New Issue
Block a user