-
Notifications
You must be signed in to change notification settings - Fork 4
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
SlChangeEvent with unknown type #1787
Comments
@adamPrzybyszExt It's unclear exactly what typing error you're running into. Can you provide more code? |
What about just passing |
The "problem" here is that the |
It's exported from |
I think your most practical solution would then be to do I don't see how this can be fixed, since |
In our situation the only workaround is using $any() in template but imagine how many of these will be needed in our app. Why don't just change |
Yeah, perhaps that is better. I'll have a look at that option. |
Provide a general summary of the issue here
sl-change /slChange event throws mismatch types error. I don't see any possibility to omit this (except using
$any
; maybe I miss something) but(slChange)="onChange($event.detail)"
nor(slChange)="onChange($event)"
won't help. In component's method we expectboolean
, not unknown.🤔 Expected Behavior?
No mismatch types error using any events: change, select etc.
😯 Current Behavior
Throws error on valid code.
💁 Possible Solution
any
.boolean
for checkbox.🖥️ Steps to Reproduce
CustomEvent<boolean>
orboolean
.What browsers are you seeing the problem on? (only for bugs in code)
Chrome
If other, please specify.
No response
What operating system are you using?
Windows 10
👤 Your name
Adam Przybysz
🧢 Your product/team
ETSL
🎨 Your Theme(s)
Editorial Suite
The text was updated successfully, but these errors were encountered: