Skip to content

Commit

Permalink
chore(): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-perkins committed Jan 4, 2022
1 parent d6f3cb5 commit 9e91a95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/components/datetime/datetime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { getIonMode } from '../../global/ionic-global';
import { Color, DatetimeChangeEventDetail, DatetimeParts, Mode, StyleEventDetail } from '../../interface';
import { startFocusVisible } from '../../utils/focus-visible';
import { getElementRoot, raf, renderHiddenInput } from '../../utils/helpers';
import { createColorClasses } from '../../utils/theme';
import { isRTL } from '../../utils/rtl';
import { createColorClasses } from '../../utils/theme';
import { PickerColumnItem } from '../picker-column-internal/picker-column-internal-interfaces';

import {
Expand Down
2 changes: 1 addition & 1 deletion core/src/utils/rtl/dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* take priority over the root document value.
*/
export const isRTL = (hostEl?: Pick<HTMLElement, 'dir'>) => {
if (hostEl && hostEl.dir) {
if (typeof hostEl?.dir !== 'undefined') {
return hostEl.dir.toLowerCase() === 'rtl';
}
return document?.dir.toLowerCase() === 'rtl';
Expand Down

0 comments on commit 9e91a95

Please sign in to comment.