Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix(select): Fixes to Select component
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Dec 28, 2017
2 parents c6c3c59 + 90dd730 commit b99e76f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions components/Select/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

```html
<m-select v-model="selected">
<m-select-option id="11">A</m-select-option>
<m-select-option id="33">B</m-select-option>
<m-select-option slot="options" id="11">A</m-select-option>
<m-select-option slot="options" id="33">B</m-select-option>
</m-select>

<m-select-multi v-model="selectedMulti" :size="4">
Expand Down Expand Up @@ -109,4 +109,4 @@ data() {

### Reference

- https://github.com/material-components/material-components-web/tree/master/packages/mdc-select
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-select
6 changes: 3 additions & 3 deletions components/Select/Select.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<div class="mdc-select" tabindex="0" :aria-disabled="disabled" role="listbox" @MDCSelect:change="onChange">
<div class="mdc-select__surface" ref="surface">
<div class="mdc-select" ref="surface" tabindex="0" :aria-disabled="disabled" role="listbox" @MDCSelect:change="onChange">
<div class="mdc-select__surface" tabindex="0">
<div class="mdc-select__label">
<slot />
</div>
<div class="mdc-select__selected-text" />
<div class="mdc-select__bottom-line" />
<div class="mdc-select__bottom-line" />
</div>
<div class="mdc-simple-menu mdc-select__menu">
<ul class="mdc-list mdc-simple-menu__items">
Expand Down

0 comments on commit b99e76f

Please sign in to comment.