diff --git a/packages/mdc-menu/simple/adapter.js b/packages/mdc-menu/simple/adapter.js
index 657aa39d040..07274eacc6d 100644
--- a/packages/mdc-menu/simple/adapter.js
+++ b/packages/mdc-menu/simple/adapter.js
@@ -59,6 +59,13 @@ class MDCSimpleMenuAdapter {
*/
getAttributeForEventTarget(target, attributeName) {}
+ /**
+ * @param {EventTarget} target
+ * @param {string} className
+ * @return {boolean}
+ */
+ eventTargetHasClass(target, className) {}
+
/** @return {{ width: number, height: number }} */
getInnerDimensions() {}
diff --git a/packages/mdc-menu/simple/foundation.js b/packages/mdc-menu/simple/foundation.js
index 28ec0683a26..871bad05697 100644
--- a/packages/mdc-menu/simple/foundation.js
+++ b/packages/mdc-menu/simple/foundation.js
@@ -283,7 +283,7 @@ class MDCSimpleMenuFoundation extends MDCFoundation {
while (el && el !== document.body) {
if (this.adapter_.eventTargetHasClass(el, cssClasses.LIST_ITEM)) {
- return true;
+ return;
}
el = el.parentNode;
}
diff --git a/packages/mdc-select/README.md b/packages/mdc-select/README.md
index a72b96a37fc..712df5cc3b8 100644
--- a/packages/mdc-select/README.md
+++ b/packages/mdc-select/README.md
@@ -352,14 +352,14 @@ within `componentDidUpdate`.
| `setBottomLineAttr(attr: string, value: string) => void` | Adds an attribute to the bottom line |
| `setAttr(attr: string, value: string) => void` | Sets attribute `attr` to value `value` on the root element. |
| `rmAttr(attr: string) => void` | Removes attribute `attr` from the root element. |
-| `computeBoundingRect() => {left: number, top: number}` | Returns an object with a shape similar to a `ClientRect` object, with a `left` and `top` property specifying the element's position on the page relative to the viewport. The easiest way to achieve this is by calling `getBoundingClientRect()` on the root element. |
+| `computeBoundingRect() => {left: number, top: number}` | Returns an object with a shape similar to a `ClientRect` object, with a `left` and `top` property specifying the element's position on the page relative to the viewport. The easiest way to achieve this is by calling `getBoundingClientRect()` on the surface element. |
| `registerInteractionHandler(type: string, handler: EventListener) => void` | Adds an event listener `handler` for event type `type` on the root element. |
| `deregisterInteractionHandler(type: string, handler: EventListener) => void` | Removes an event listener `handler` for event type `type` on the root element. |
| `focus() => void` | Focuses the root element |
| `makeTabbable() => void` | Allows the root element to be tab-focused via keyboard. We achieve this by setting the root element's `tabIndex` property to `0`. |
| `makeUntabbable() => void` | Disallows the root element to be tab-focused via keyboard. We achieve this by setting the root element's `tabIndex` property to `-1`. |
-| `getComputedStyleValue(propertyName: string) => string` | Get the root element's computed style value of the given dasherized css property `propertyName`. We achieve this via `getComputedStyle(...).getPropertyValue(propertyName). `|
-| `setStyle(propertyName: string, value: string) => void` | Sets a dasherized css property `propertyName` to the value `value` on the root element. We achieve this via `root.style.setProperty(propertyName, value)`. |
+| `getComputedStyleValue(propertyName: string) => string` | Get the surface element's computed style value of the given dasherized css property `propertyName`. We achieve this via `getComputedStyle(...).getPropertyValue(propertyName). `|
+| `setStyle(propertyName: string, value: string) => void` | Sets a dasherized css property `propertyName` to the value `value` on the surface element. We achieve this via `root.style.setProperty(propertyName, value)`. |
| `create2dRenderingContext() => {font: string, measureText: (string) => {width: number}}` | Returns an object which has the shape of a CanvasRenderingContext2d instance. Namely, it has a string property `font` which is writable, and a method `measureText` which given a string of text returns an object containing a `width` property specifying how wide that text should be rendered in the `font` specified by the font property. An easy way to achieve this is simply `document.createElement('canvas').getContext('2d');`. |
| `setMenuElStyle(propertyName: string) => void` | Sets a dasherized css property `propertyName` to the value `value` on the menu element. |
| `setMenuElAttr(attr: string, value: string) => void` | Sets attribute `attr` to value `value` on the menu element. |
@@ -436,12 +436,15 @@ First, wrap both a custom select and a native select within a wrapper element, l
-
+