Intercept dropdown clicks for demos

This commit is contained in:
Cory LaViska
2017-09-01 23:59:53 -04:00
parent 1249cb5409
commit d7c2103eea
20 changed files with 100 additions and 0 deletions

View File

@@ -206,6 +206,11 @@
$(this).addClass('current');
}
});
// Intercept dropdown clicks for the demo
$('.dropdown').on('select', function(event) {
event.preventDefault();
});
});
</script>
<script async defer src="https://buttons.github.io/buttons.js"></script>