Skip to content

Commit

Permalink
fixed nested card collapse/expand icon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed Jan 17, 2020
1 parent 1ea675c commit ce48626
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions build/js/CardWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ const CardWidget = (($) => {
.slideUp(this._settings.animationSpeed, () => {
this._parent.addClass(ClassName.COLLAPSED)
})
this._parent.find(this._settings.collapseTrigger + ' .' + this._settings.collapseIcon)

this._parent.find('> ' + Selector.CARD_HEADER + ' ' + this._settings.collapseTrigger + ' .' + this._settings.collapseIcon)
.addClass(this._settings.expandIcon)
.removeClass(this._settings.collapseIcon)

Expand All @@ -85,7 +86,7 @@ const CardWidget = (($) => {
this._parent.removeClass(ClassName.COLLAPSED)
})

this._parent.find(this._settings.collapseTrigger + ' .' + this._settings.expandIcon)
this._parent.find('> ' + Selector.CARD_HEADER + ' ' + this._settings.collapseTrigger + ' .' + this._settings.expandIcon)
.addClass(this._settings.collapseIcon)
.removeClass(this._settings.expandIcon)

Expand Down
4 changes: 2 additions & 2 deletions dist/js/adminlte.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/adminlte.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/adminlte.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/adminlte.min.js.map

Large diffs are not rendered by default.

0 comments on commit ce48626

Please sign in to comment.