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

Collapse.Options.parent default value: Type 'boolean' is not assignable to type 'string | Element | JQuery' #36936

Closed
3 tasks done
eyesofkids opened this issue Aug 10, 2022 · 2 comments · Fixed by #37019
Closed
3 tasks done

Comments

@eyesofkids
Copy link

Prerequisites

Describe the issue

Collapse.Options.parent default value is false. It is boolean type.
Collapse.Options.parent type is string | Element | JQuery and can't defined as boolean type.

options: Collapse.Options = { parent: false, toggle: true }

ts error:

Type 'boolean' is not assignable to type 'string | Element | JQuery'.

Reduced test cases

from: https://getbootstrap.com/docs/5.2/components/collapse/#options

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

v5.2.0

@GeoSot
Copy link
Member

GeoSot commented Aug 10, 2022

Hello @eyesofkids and thank you for reporting this
Seems our docs need to be fixed there. Just use null or an HTMLelement

@monsterRocky

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants