Skip to content

Commit

Permalink
chore: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin committed Jul 11, 2022
1 parent b8da6f3 commit 0f85cac
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions projects/cdk/utils/focus/blur-native-focused.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {setNativeFocused} from './set-native-focused';
import {tuiGetNativeFocused} from './tui-get-native-focused';
import {tuiGetNativeFocused} from './get-native-focused';

/**
* @deprecated: use {@link tuiBlurNativeFocused} instead
Expand All @@ -11,7 +10,7 @@ export function blurNativeFocused(documentRef: Document): void {

// TODO: iframe warning
if (activeElement instanceof HTMLElement) {
setNativeFocused(activeElement, false);
activeElement.blur();
}
}

Expand Down
6 changes: 3 additions & 3 deletions projects/cdk/utils/focus/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export * from './blur-native-focused';
export * from './get-closest-keyboard-focusable';
export * from './get-native-focused';
export * from './is-native-focused';
export * from './is-native-focused-in';
export * from './is-native-keyboard-focusable';
export * from './is-native-mouse-focusable';
export * from './move-focus';
export * from './set-native-focused';
export * from './set-native-mouse-focused';
export * from './tui-get-native-focused';
export * from './tui-is-native-focused';
export * from './tui-is-native-focused-in';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {tuiGetNativeFocused} from './tui-get-native-focused';
import {tuiGetNativeFocused} from './get-native-focused';

/**
* Checks if focused element is within given element.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {tuiGetNativeFocused} from './tui-get-native-focused';
import {tuiGetNativeFocused} from './get-native-focused';

/**
* Checks if element is focused.
Expand Down
2 changes: 1 addition & 1 deletion projects/cdk/utils/focus/move-focus.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {tuiIsNativeFocused} from './is-native-focused';
import {setNativeFocused} from './set-native-focused';
import {tuiIsNativeFocused} from './tui-is-native-focused';

/**
* @deprecated: use {@link tuiMoveFocus} instead
Expand Down
2 changes: 1 addition & 1 deletion projects/cdk/utils/focus/tests/get-native-focused.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {tuiGetNativeFocused} from '../tui-get-native-focused';
import {tuiGetNativeFocused} from '../get-native-focused';

describe('getNativeFocused', () => {
it('returns active focused element in document', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {tuiIsNativeFocusedIn} from '../tui-is-native-focused-in';
import {tuiIsNativeFocusedIn} from '../is-native-focused-in';

describe('isNativeFocusedIn', () => {
it('element is not focused in', () => {
Expand Down
Empty file.

0 comments on commit 0f85cac

Please sign in to comment.