-
Notifications
You must be signed in to change notification settings - Fork 713
useOverlay props type lost #3436
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
Comments
I think the issue is that you're passing import { Confirm } from "#components";
export const useConfirm = () => {
const overlay = useOverlay();
const m = overlay.create(Confirm, {
props: {
title:'test'
}
});
// The visible type hint is any
m.open({
});
}; Have a look at this: https://codesandbox.io/p/devbox/nuxtui-useoverlay-forked-8gh75m and the docs: https://ui3.nuxt.dev/components/modal#programmatic-usage |
Hmm, it's odd. I'll take a look. Could you try it directly in vscode instead of codesandbox in the meantime? |
I found this problem in the local vscode, because codesandbox is convenient to view the ts prompt, so use it to reproduce. |
What was the problem? |
I mean the missing props type was first discovered in my local vscode environment |
Is it safe to say this can be closed? cc @benjamincanac |
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
3.15.4
Reproduction
https://codesandbox.io/p/devbox/pmvsfw
Description
e.g:
I didn't get the correct props type when using useOverlay, and there are no property hints when passing overlay.open or the open function after create
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: