mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-29 13:26:59 -04:00
Merge remote-tracking branch 'origin/master' into #11/description-for-input-components
# Conflicts: # dist/clay.js # src/styles/clay/_base.scss # src/templates/components/select.tpl # src/templates/components/toggle.tpl
This commit is contained in:
@@ -16,8 +16,10 @@ module.exports = {
|
||||
|
||||
var $value = self.$element.select('.value');
|
||||
|
||||
self.on('change', function(ev) {
|
||||
var value = self.$manipulatorTarget.select('option:checked').get('innerHTML');
|
||||
self.on('change', function() {
|
||||
var selectedIndex = self.$manipulatorTarget.get('selectedIndex');
|
||||
var $options = self.$manipulatorTarget.select('option');
|
||||
var value = $options[selectedIndex] && $options[selectedIndex].innerHTML;
|
||||
$value.set('innerHTML', value);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user