fix: select instead of focus search input (#8483)
This commit is contained in:
@@ -76,11 +76,12 @@ export class API {
|
||||
});
|
||||
};
|
||||
|
||||
static updateElement = (
|
||||
...[element, updates]: Parameters<typeof mutateElement>
|
||||
// eslint-disable-next-line prettier/prettier
|
||||
static updateElement = <T extends ExcalidrawElement>(
|
||||
...args: Parameters<typeof mutateElement<T>>
|
||||
) => {
|
||||
act(() => {
|
||||
mutateElement(element, updates);
|
||||
mutateElement<T>(...args);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user