Skip to content

Commit

Permalink
apply minor changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Jun 2, 2021
1 parent cfcf88b commit 4e7acbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/src/offcanvas.js
Expand Up @@ -259,9 +259,9 @@ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (
data.toggle(this)
})

EventHandler.on(window, EVENT_LOAD_DATA_API, () => {
EventHandler.on(window, EVENT_LOAD_DATA_API, () =>
SelectorEngine.find(OPEN_SELECTOR).forEach(el => (Offcanvas.getOrCreateInstance(el)).show())
})
)

/**
* ------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.0/components/alerts.md
Expand Up @@ -215,7 +215,7 @@ This makes an alert listen for click events on descendant elements which have th
</td>
<td>
Static method which returns an alert instance associated to a DOM element or create a new one in case it wasn't initialised.
You can use it like this: <code>bootstrap.Alert.getOrCreateInstance(alert)</code>
You can use it like this: <code>bootstrap.Alert.getOrCreateInstance(element)</code>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 4e7acbe

Please sign in to comment.