fix: Update company picker keyboard navigation (#1628)
* fix: scroll * fix: use ref * fix: new changes * fix: remove ref * fix: state * chore: clean up * Include Empty option * Include Empty option * Include Empty option * Fix tests --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
export const RelationPickerRecoilScopeContext = createContext<string | null>(
|
||||
'relation-picker-context',
|
||||
);
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
import { atomFamily } from 'recoil';
|
||||
|
||||
export const relationPickerHoverIndexScopedState = atomFamily<number, string>({
|
||||
key: 'relationPickerHoverIndexScopedState',
|
||||
default: 0,
|
||||
});
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { atomFamily } from 'recoil';
|
||||
|
||||
export const relationPickerPreselectedIdScopedState = atomFamily<
|
||||
string,
|
||||
string
|
||||
>({
|
||||
key: 'relationPickerPreselectedIdScopedState',
|
||||
default: (param) => param,
|
||||
});
|
||||
Reference in New Issue
Block a user