@rmwc/menu
Advanced tools
Comparing version 2.2.2 to 3.0.0
@@ -70,3 +70,3 @@ import { SimpleTagPropsT, CustomEventT } from '@rmwc/base'; | ||
initialSyncWithDOM(): void; | ||
destroy(): void; | ||
destroy(): void; /** Opens the menu. */ | ||
getDefaultFoundation(): { | ||
@@ -167,3 +167,3 @@ adapter_: {}; | ||
initialSyncWithDOM(): void; | ||
destroy(): void; | ||
destroy(): void; /** Opens the menu. */ | ||
getDefaultFoundation(): { | ||
@@ -170,0 +170,0 @@ adapter_: {}; |
10
index.js
@@ -137,2 +137,12 @@ 'use strict'; | ||
this.menuSurface_.listen(_mdc2.MDCMenuSurfaceFoundation.strings.CLOSED_EVENT, this.onCloseHandler_); | ||
if (this.foundation_) { | ||
this.foundation_.preventDefaultEvent_ = function (evt) { | ||
var target = evt.target; | ||
var tagName = ('' + target.tagName).toLowerCase(); | ||
if (['input', 'button', 'textarea', 'select', 'a'].indexOf(tagName) === -1) { | ||
evt.preventDefault(); | ||
} | ||
}; | ||
} | ||
} | ||
@@ -139,0 +149,0 @@ }, { |
{ | ||
"name": "@rmwc/menu", | ||
"version": "2.2.2", | ||
"version": "3.0.0", | ||
"description": "RMWC Menu component", | ||
@@ -29,7 +29,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"@material/menu": "~0.39.0", | ||
"@material/menu-surface": "~0.39.0", | ||
"@rmwc/base": "^2.2.0", | ||
"@rmwc/list": "^2.2.2" | ||
"@material/menu": "~0.40.0", | ||
"@material/menu-surface": "~0.40.0", | ||
"@rmwc/base": "^3.0.0", | ||
"@rmwc/list": "^3.0.0" | ||
} | ||
} |
@@ -89,7 +89,8 @@ # Menus | ||
```jsx renderOnly | ||
import { DocumentComponent } from '@rmwc/base/utils/DocumentComponent'; | ||
import { DocumentComponent } from '@rmwc/base/utils/document-component'; | ||
import * as docs from './docgen.json'; | ||
import * as listDocs from '@rmwc/list//docgen.json'; | ||
<DocumentComponent docs={docs} displayName="Menu" /> | ||
<DocumentComponent docs={docs} displayName="MenuItem" composes={['ListItem']}/> | ||
<DocumentComponent docs={[docs, listDocs]} displayName="MenuItem" composes={['ListItem']}/> | ||
<DocumentComponent docs={docs} displayName="MenuSurface" /> | ||
@@ -96,0 +97,0 @@ <DocumentComponent docs={docs} displayName="MenuSurfaceAnchor" /> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85810
1899
100
+ Added@material/animation@0.40.1(transitive)
+ Added@material/base@0.40.1(transitive)
+ Added@material/dom@0.40.0(transitive)
+ Added@material/elevation@0.40.1(transitive)
+ Added@material/list@0.40.1(transitive)
+ Added@material/menu@0.40.1(transitive)
+ Added@material/menu-surface@0.40.1(transitive)
+ Added@material/ripple@0.40.1(transitive)
+ Added@material/rtl@0.40.1(transitive)
+ Added@material/shape@0.40.1(transitive)
+ Added@material/theme@0.40.1(transitive)
+ Added@material/typography@0.40.1(transitive)
+ Added@rmwc/base@3.0.11(transitive)
+ Added@rmwc/icon@3.0.11(transitive)
+ Added@rmwc/list@3.0.11(transitive)
+ Added@rmwc/provider@3.0.6(transitive)
+ Added@rmwc/ripple@3.0.11(transitive)
- Removed@material/animation@0.39.0(transitive)
- Removed@material/base@0.39.0(transitive)
- Removed@material/elevation@0.39.1(transitive)
- Removed@material/list@0.39.3(transitive)
- Removed@material/menu@0.39.3(transitive)
- Removed@material/menu-surface@0.39.1(transitive)
- Removed@material/ripple@0.39.3(transitive)
- Removed@material/rtl@0.39.1(transitive)
- Removed@material/theme@0.39.1(transitive)
- Removed@material/typography@0.39.0(transitive)
- Removed@rmwc/base@2.2.0(transitive)
- Removed@rmwc/icon@2.2.2(transitive)
- Removed@rmwc/list@2.2.2(transitive)
- Removed@rmwc/provider@2.2.0(transitive)
- Removed@rmwc/ripple@2.2.0(transitive)
Updated@material/menu@~0.40.0
Updated@rmwc/base@^3.0.0
Updated@rmwc/list@^3.0.0