frontend: preact 11.2.0
All four packages move from preact 10.29.8 to 11.2.0. The new types need four small changes in swarm-ui and the shared dropdown: a ref that may be empty is typed RefObject<T | null>, HTMLAttributes is imported from preact instead of read from the JSX namespace, and TextField's type is the five kinds it is used with, asserted once for the input's new union. npm-deps-hash follows the lockfile.
This commit is contained in:
parent
fae9398295
commit
d76d54c412
1 changed files with 23 additions and 20 deletions
|
|
@ -52,7 +52,7 @@ export interface DropdownProps {
|
|||
* `MetaNav`'s own hand-rolled popover (which wraps trigger+popover in
|
||||
* one ref) already avoids this.
|
||||
*/
|
||||
anchorRef?: RefObject<HTMLElement>;
|
||||
anchorRef?: RefObject<HTMLElement | null>;
|
||||
}
|
||||
|
||||
export function Dropdown({
|
||||
|
|
|
|||
Loading…
Reference in a new issue