Skip to content

Commit

Permalink
fix(select): Update for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
williamernest committed Feb 27, 2018
1 parent 09ad67c commit 0984f22
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions demos/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ <h2 class="mdc-typography--title">Pre-selected option via HTML</h2>

setSelectedCb.checked = index === 0;
});

rtlCb.addEventListener('change', function() {
if (rtlCb.checked) {
boxDemoWrapper.setAttribute('dir', 'rtl');
Expand All @@ -251,18 +250,15 @@ <h2 class="mdc-typography--title">Pre-selected option via HTML</h2>
disabledCb.addEventListener('change', function() {
select.disabled = disabledCb.checked;
});

setSelectedCb.addEventListener('change', function() {
select.selectedIndex = this.checked ? 0 : -1;
});

});

demoReady(function() {
var root = document.getElementById('box-js-select');
var boxCurrentlySelected = document.getElementById('box-currently-selected');
var select = new mdc.select.MDCSelect(root);

var boxDemoWrapper = document.getElementById('box-demo-wrapper');
var rtlCb = document.getElementById('box-rtl');
var alternateColorsCb = document.getElementById('box-alternate-colors');
Expand All @@ -277,7 +273,6 @@ <h2 class="mdc-typography--title">Pre-selected option via HTML</h2>

setSelectedCb.checked = index === 0;
});

rtlCb.addEventListener('change', function() {
if (rtlCb.checked) {
boxDemoWrapper.setAttribute('dir', 'rtl');
Expand All @@ -291,12 +286,10 @@ <h2 class="mdc-typography--title">Pre-selected option via HTML</h2>
disabledCb.addEventListener('change', function() {
select.disabled = disabledCb.checked;
});

setSelectedCb.addEventListener('change', function() {
select.selectedIndex = this.checked ? 0 : -1;
});
});

</script>
</body>
</html>

0 comments on commit 0984f22

Please sign in to comment.