Files
headlessui/packages
Robin Malfait 206bb7fc10 Resolve initialFocusRef correctly (#1276)
* resolve initialFocusRef correctly

If you are passing a Ref to a component, you don't get the underlying
DOM node even if you put it on the element manually. The ref will be a
ref to the _component_.

This means that the initialFocusRef can be a DOM element or a Vue
component instance. Resolving it guarantees us to resolve to an
HTMLElement or null but not a component.

* update changelog
2022-03-28 00:04:16 +02:00
..