Fixed single record select hotkeys (#9433)
There is a problem of hotkey scope not being passed to the relation picker used for single record select fields. Fixed it where we open a single record select.
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
import { Decorator } from '@storybook/react';
|
||||
|
||||
import { RecordPickerComponentInstanceContext } from '@/object-record/relation-picker/states/contexts/RecordPickerComponentInstanceContext';
|
||||
import { RelationPickerHotkeyScope } from '@/object-record/relation-picker/types/RelationPickerHotkeyScope';
|
||||
|
||||
export const RecordPickerDecorator: Decorator = (Story) => (
|
||||
<RecordPickerComponentInstanceContext.Provider
|
||||
value={{ instanceId: 'record-picker' }}
|
||||
value={{ instanceId: RelationPickerHotkeyScope.RelationPicker }}
|
||||
>
|
||||
<Story />
|
||||
</RecordPickerComponentInstanceContext.Provider>
|
||||
|
||||
Reference in New Issue
Block a user