We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e926a95 commit 6ee44d9Copy full SHA for 6ee44d9
CHANGELOG.md
@@ -3,6 +3,7 @@
3
# 4.0.1
4
5
* Tabs index now selects panels and no longer requires tabs
6
+* Add closeTarget to Slideover
7
8
# 4.0.0
9
src/slideover.js
@@ -2,10 +2,11 @@ import Dropdown from './dropdown.js'
2
import { toggleWithState } from './transition'
export default class extends Dropdown {
- static targets = ['menu', 'overlay']
+ static targets = ['menu', 'overlay', 'close']
openValueChanged() {
toggleWithState(this.overlayTarget, this.openValue)
toggleWithState(this.menuTarget, this.openValue)
10
+ if (this.hasCloseTarget) toggleWithState(this.closeTarget, this.openValue)
11
}
12
0 commit comments