Skip to content

Commit

Permalink
Fix the name of the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit2sharma95 committed Mar 4, 2021
1 parent 548be2e commit 0cff430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/5.0/components/offcanvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Enable manually with:
```js
var offcanvasElementList = [].slice.call(document.querySelectorAll('.offcanvas'))
var offcanvasList = offcanvasElementList.map(function (offcanvasEl) {
return new bootstrap.Offcanvas(offcanvasEl)
return new bootstrap.OffCanvas(offcanvasEl)
})
```

Expand All @@ -207,7 +207,7 @@ You can create an offcanvas instance with the constructor, for example:

```js
var myOffcanvas = document.getElementById('myOffcanvas')
var bsOffcanvas = new bootstrap.Offcanvas(myOffcanvas)
var bsOffcanvas = new bootstrap.OffCanvas(myOffcanvas)
```

| Method | Description |
Expand Down

0 comments on commit 0cff430

Please sign in to comment.