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:
Lucas Bordeau
2025-01-07 17:06:06 +01:00
committed by GitHub
parent 0c75b244ba
commit 6129052850
10 changed files with 77 additions and 38 deletions

View File

@ -54,7 +54,7 @@ export const WithActivate: Story = {
await expect(handleActivateMockFunction).toHaveBeenCalledTimes(0);
const activateMenuItem = await canvas.getByText('Activate');
const activateMenuItem = await canvas.findByText('Activate');
await userEvent.click(activateMenuItem);
@ -75,7 +75,7 @@ export const WithDelete: Story = {
await expect(handleDeleteMockFunction).toHaveBeenCalledTimes(0);
const deleteMenuItem = await canvas.getByText('Delete');
const deleteMenuItem = await canvas.findByText('Delete');
await userEvent.click(deleteMenuItem);