We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2956562 commit 72592e1Copy full SHA for 72592e1
src/VueDatePicker/composables/position.ts
@@ -180,8 +180,8 @@ export const usePosition = ({
180
const getMenuPlacement = (): MenuPlacement => {
181
const inputEl = unrefElement(inputRef as MaybeElementRef);
182
if (inputEl) {
183
- if (props.autoPosition === 'top') return MenuPlacement.top;
184
- if (props.autoPosition === 'bottom') return MenuPlacement.bottom;
+ if (props.autoPosition === MenuPlacement.top) return MenuPlacement.top;
+ if (props.autoPosition === MenuPlacement.bottom) return MenuPlacement.bottom;
185
const { height: menuHeight } = menuRect.value;
186
const { top: inputTop, height: inputHeight } = inputEl.getBoundingClientRect();
187
0 commit comments