Fix value not showing up for select in old Android versions

This commit is contained in:
Keegan
2016-02-29 23:18:25 +11:00
parent eb1d336f8f
commit 3b9bf842cb
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -15,8 +15,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);
});
}
+1
View File
@@ -8,6 +8,7 @@
$triangle-size: 0.85rem;
position: relative;
padding-right: $triangle-size + 0.25rem;
display: block;
&:after {
content: "";