Skip to content

Commit

Permalink
bring back static example?
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Mar 23, 2021
1 parent 9b32bf1 commit 1bb1df3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions js/src/offcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ const ESCAPE_KEY = 'Escape'

const Default = {
backdrop: true,
focus: true,
keyboard: true,
scroll: false
}

const DefaultType = {
backdrop: 'boolean',
focus: 'boolean',
keyboard: 'boolean',
scroll: 'boolean'
}
Expand Down Expand Up @@ -184,7 +182,7 @@ class Offcanvas extends BaseComponent {
}

_enforceFocusOnElement(element) {
if (!this._config.focus) {
if (this._config.scroll) {
return
}

Expand Down
3 changes: 0 additions & 3 deletions site/assets/scss/_component-examples.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,7 @@

.offcanvas {
position: static;
display: block;
height: 200px;
visibility: visible;
transform: translate(0);
}
}

Expand Down

0 comments on commit 1bb1df3

Please sign in to comment.