-
Notifications
You must be signed in to change notification settings - Fork 29
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
on:clickoutside gives TS error #67
Comments
I found a solution, I needed to add this to declare global {
...
namespace svelteHTML {
interface HTMLAttributes<T> {
"on:clickoutside"?: (e: CustomEvent<T>) => void;
}
}
} |
Ohh no, thanks for submitting this issue, will fix this, also I had a small improvement with the clickOutsideAction, as you know sometimes we need to pass a trigger element as well which is outside the container we want to close but we don't want to perform clickOutsideAction when clicked on trigger, because trigger already manages the visibility. |
We will push that update in another release! |
@ankurrsinghal done with this? |
The same error with longpress
|
|
Still not fixed |
When I use the
clickOutsideAction
, typescript complains but it is working like it should.The text was updated successfully, but these errors were encountered: