Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing position in type definition file #626

Closed
SennaSanzo opened this issue Aug 8, 2024 · 2 comments
Closed

Missing position in type definition file #626

SennaSanzo opened this issue Aug 8, 2024 · 2 comments

Comments

@SennaSanzo
Copy link

SennaSanzo commented Aug 8, 2024

Hello,

I think the 'center' position is missing from AirDatepickerPosition type declaration. It forces to convert the position to any like so:

new AirDatepicker(inputEl, {
      position: "right center" as any,
})
@t1m0n
Copy link
Owner

t1m0n commented Aug 12, 2024

Hello! You should use 'right' for that purpose.

@t1m0n t1m0n closed this as completed Aug 12, 2024
@SennaSanzo
Copy link
Author

Sorry but it seems that right doesn't produce the same render in terms of css. Maybe it is a compability issue with my own design but if I only use the "right" position in TypeScript the airdatepicker is broken and doesn't appear next to my input. For now I use the dirty soltution I speficied in my initial post and I will come back to you If I have more time to investigate on this... Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants