Skip to content

Commit

Permalink
chore(select): Fix JS example in Readme (#2332)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamernest authored Mar 5, 2018
1 parent bc17291 commit 49a9449
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mdc-select/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ npm install --save @material/select
Then with JS

```js
import {MDCSelect} from '@material/select';

const select = new MDCSelect(document.querySelector('.mdc-select'));
const select = new mdc.select.MDCSelect(document.querySelector('.mdc-select'));
select.listen('MDCSelect:change', () => {
alert(`Selected "${select.selectedOptions[0].textContent}" at index ${select.selectedIndex} ` +
`with value "${select.value}"`);
});
```

See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.

Note that you can include mdc-select via a UMD bundle, which will be available post-alpha.

> Note that the full-fidelity version of MDC Select requires you to manually include the styles for
Expand Down

0 comments on commit 49a9449

Please sign in to comment.