Skip to content

Commit

Permalink
fixing typo (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon authored Nov 20, 2018
1 parent 9645fe8 commit 6e60d2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/view/drag-handle/drag-handle-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type Callbacks = {|
|};

export type DragHandleProps = {|
// If a consumer is using a portal then the item will loose focus
// If a consumer is using a portal then the item will lose focus
// when moving to the portal. This breaks keyboard dragging.
// To get around this we manually apply focus if needed when mounting
onFocus: () => void,
Expand Down
4 changes: 2 additions & 2 deletions test/unit/view/draggable/using-a-portal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
} from '../../../../src/view/draggable/draggable-types';
import mount from './util/mount';
import { whileDragging, atRestMapProps } from './util/get-props';
import looseFocus from './util/loose-focus';
import loseFocus from './util/lose-focus';

// This is covered in focus-management.spec
// But I have included in here also to ensure that the entire
Expand Down Expand Up @@ -108,7 +108,7 @@ it('should keep focus if moving to a portal', () => {
expect(latest).not.toBe(wrapper.find(WithPortal).instance().portal);

// cleanup
looseFocus(wrapper);
loseFocus(wrapper);
wrapper.unmount();
});

Expand Down
File renamed without changes.

0 comments on commit 6e60d2e

Please sign in to comment.