Skip to content

Commit

Permalink
Merge branch 'next' into feat/html-templating
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahdayan authored Apr 5, 2022
2 parents 1d34178 + 93a1fc2 commit 2170219
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 220 deletions.
4 changes: 2 additions & 2 deletions packages/autocomplete-core/src/getPropGetters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
GetRootProps,
InternalAutocompleteOptions,
} from './types';
import { getActiveItem, isChrome, isOrContainsNode, isSamsung } from './utils';
import { getActiveItem, isOrContainsNode, isSamsung } from './utils';

interface GetPropGettersOptions<TItem extends BaseItem>
extends AutocompleteScopeApi<TItem> {
Expand Down Expand Up @@ -163,7 +163,7 @@ export function getPropGetters<
const activeItem = getActiveItem(store.getState());

const userAgent = props.environment.navigator?.userAgent;
const shouldFallbackKeyHint = isSamsung(userAgent) && isChrome(userAgent);
const shouldFallbackKeyHint = isSamsung(userAgent);
const enterKeyHint =
activeItem?.itemUrl && !shouldFallbackKeyHint ? 'go' : 'search';

Expand Down
203 changes: 0 additions & 203 deletions packages/autocomplete-core/src/utils/__tests__/isChrome.test.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/autocomplete-core/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export * from './createCancelablePromiseList';
export * from './createConcurrentSafePromise';
export * from './getNextActiveItemId';
export * from './getNormalizedSources';
export * from './isChrome';
export * from './getActiveItem';
export * from './isOrContainsNode';
export * from './isSamsung';
Expand Down
14 changes: 0 additions & 14 deletions packages/autocomplete-core/src/utils/isChrome.ts

This file was deleted.

0 comments on commit 2170219

Please sign in to comment.