Skip to content

Commit ecee935

Browse files
author
Graham Butler
committed
Add force-open attribute
1 parent aa93428 commit ecee935

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@author.io/element-menu",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "author-menu custom element (web component).",
55
"main": "dist/author-menu.min.js",
66
"scripts": {

showroom/dist/css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

showroom/dist/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* author-menu-showroom v1.0.0 generated on Mon Apr 01 2019.
3-
* Built at 12:40:47 GMT-0700 (Pacific Daylight Time)
3+
* Built at 12:44:40 GMT-0700 (Pacific Daylight Time)
44
* Copyright (c) 2019 Author.io
55
*/
66
"use strict";var Demo=new NGNX.VIEW.Registry({selector:".demo",namespace:"demo.",init:function(){console.log("works")}});

src/element.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ class AuthorMenuElement extends AuthorBaseElement(HTMLElement) {
227227
}
228228

229229
switch (attribute) {
230+
case 'force-open':
231+
return this.PRIVATE.open()
232+
230233
case 'open':
231234
return this.emit('state.change', {
232235
name: 'open',

0 commit comments

Comments
 (0)