-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Bug] TypeError: Cannot convert object to primitive value #184
Comments
Hello @mshemuni, Thank you for using our products, the TypeError: Cannot convert the object to primitive value error typically occurs when you try to use an object in a context where a primitive value is expected, such as when you try to concatenate an object with a string using the + operator. To fix this error, you need to convert the object to a primitive value before using it in a context where a primitive value is expected. One way to do this is by using the valueOf method, which returns the primitive value of an object. Hope this information helps you. Please let us know if we can help you with anything else. |
Version
v2.1.0
Reproduction link
twbs/bootstrap#30553 (comment)
Operating System
Ubuntu
Device
PC and Mobile
Browser & Version
All Browsers
Steps to reproduce
js9support.min.js
as example shows.What is expected?
When
navbar-toggler
width data-target of#navigation-example
is clicked an animation to open a side bar is expected.What is actually happening?
An error says
TypeError: Cannot convert object to primitive value
and no side bar is openedSolution
twbs/bootstrap#30553 (comment)
chanhed this line:
if (!i && l.toggle && /show|hide/.test(t) && (l.toggle = !1), i || (i = new r(this, l), o.data(n, i)), 'string' == typeof t) {
to this:
if (!i && l.toggle && /show|hide/.test(l) && (l.toggle = !1), i || (i = new r(this, l), o.data(n, i)), 'string' == typeof t) {
Additional comments
Unfortunately my code is not in production. So I cannot create a codepen etc...
The text was updated successfully, but these errors were encountered: