From 844d77ef261b7ea0600798f9687424fe727bae4e Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Thu, 16 Dec 2021 22:13:37 +0200 Subject: [PATCH] fix: expose placement --- src/cosmoz-dropdown.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cosmoz-dropdown.js b/src/cosmoz-dropdown.js index 4db2d0a..47279a5 100644 --- a/src/cosmoz-dropdown.js +++ b/src/cosmoz-dropdown.js @@ -5,7 +5,7 @@ import { useFocus } from './use-focus'; const preventDefault = e => e.preventDefault(), fevs = ['focusin', 'focusout'], Content = host => { - usePosition({ anchor: host.anchor, host }); + usePosition({ anchor: host.anchor, host, placement: host.placement }); return html`