Skip to content

Commit e3c8f18

Browse files
refactor(eslint): eslint fixes
1 parent 4360e17 commit e3c8f18

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

packages/kit-headless/src/components/autocomplete/autocomplete-control.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import {
2+
Slot,
23
component$,
34
useSignal,
4-
useContext,
5-
Slot,
65
type QwikIntrinsicElements
76
} from '@builder.io/qwik';
8-
import AutocompleteContextId from './autocomplete-context-id';
97

108
export type AutocompleteControlProps = QwikIntrinsicElements['div'];
119

1210
export const AutocompleteControl = component$((props: AutocompleteControlProps) => {
1311
const ref = useSignal<HTMLElement>();
14-
const contextService = useContext(AutocompleteContextId);
1512

1613
return (
1714
<div ref={ref} {...props}>

packages/kit-headless/src/components/autocomplete/autocomplete-input.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import {
2+
$,
23
component$,
3-
useSignal,
44
useContext,
5+
useSignal,
56
useVisibleTask$,
6-
$,
7-
type Signal,
8-
type QwikKeyboardEvent,
9-
type QwikIntrinsicElements
7+
type QwikIntrinsicElements,
8+
type QwikKeyboardEvent
109
} from '@builder.io/qwik';
1110
import AutocompleteContextId from './autocomplete-context-id';
1211

packages/kit-headless/src/components/autocomplete/autocomplete-root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export type AutocompleteRootProps = {
132132
*
133133
*/
134134
export const AutocompleteRoot = component$(
135-
({ defaultValue, placeholder, ...props }: AutocompleteRootProps) => {
135+
({ defaultValue, ...props }: AutocompleteRootProps) => {
136136
useVisibleTask$(function deprecatedComponentError() {
137137
throw new Error(
138138
'Qwik UI: The Autocomplete component has been deprecated in favor of the Combobox. Please use the Combobox component instead.'

packages/kit-headless/src/components/autocomplete/autocomplete-trigger.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import {
2-
component$,
32
$,
43
Slot,
4+
component$,
55
useContext,
6-
type QwikIntrinsicElements,
76
useSignal,
8-
useVisibleTask$
7+
useVisibleTask$,
8+
type QwikIntrinsicElements
99
} from '@builder.io/qwik';
1010
import AutocompleteContextId from './autocomplete-context-id';
1111

@@ -17,8 +17,6 @@ export const AutocompleteTrigger = component$(({ ...props }: TriggerProps) => {
1717
const listboxId = contextService.listBoxId;
1818
const triggerRefSig = useSignal<HTMLElement>();
1919

20-
const isTriggerExpandedSig = contextService.isTriggerExpandedSig;
21-
2220
// useVisibleTask$(function focusInputTask({ track }) {
2321
// if (track(() => !isTriggerExpandedSig.value)) {
2422
// triggerRefSig.value?.focus();

0 commit comments

Comments
 (0)