Some empty select is causing issues, so I'm not gonna bother with it
This commit is contained in:
parent
aa48ee519c
commit
96338ebe0b
@ -13475,11 +13475,11 @@
|
|||||||
return $.on(div, 'click', Rice.cb.check);
|
return $.on(div, 'click', Rice.cb.check);
|
||||||
},
|
},
|
||||||
select: function(select) {
|
select: function(select) {
|
||||||
var div;
|
var div, _ref;
|
||||||
$.addClass(select, 'riced');
|
$.addClass(select, 'riced');
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'selectrice',
|
className: 'selectrice',
|
||||||
innerHTML: "<div>" + (select.options[select.selectedIndex || '0'].textContent || '') + "</div>"
|
innerHTML: "<div>" + (((_ref = select.options[select.selectedIndex || '0']) != null ? _ref.textContent : void 0) || '') + "</div>"
|
||||||
});
|
});
|
||||||
$.on(div, "click", Rice.cb.select);
|
$.on(div, "click", Rice.cb.select);
|
||||||
return $.after(select, div);
|
return $.after(select, div);
|
||||||
|
|||||||
@ -13465,11 +13465,11 @@
|
|||||||
return $.on(div, 'click', Rice.cb.check);
|
return $.on(div, 'click', Rice.cb.check);
|
||||||
},
|
},
|
||||||
select: function(select) {
|
select: function(select) {
|
||||||
var div;
|
var div, _ref;
|
||||||
$.addClass(select, 'riced');
|
$.addClass(select, 'riced');
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'selectrice',
|
className: 'selectrice',
|
||||||
innerHTML: "<div>" + (select.options[select.selectedIndex || '0'].textContent || '') + "</div>"
|
innerHTML: "<div>" + (((_ref = select.options[select.selectedIndex || '0']) != null ? _ref.textContent : void 0) || '') + "</div>"
|
||||||
});
|
});
|
||||||
$.on(div, "click", Rice.cb.select);
|
$.on(div, "click", Rice.cb.select);
|
||||||
return $.after(select, div);
|
return $.after(select, div);
|
||||||
|
|||||||
@ -88,7 +88,7 @@ Rice =
|
|||||||
$.addClass select, 'riced'
|
$.addClass select, 'riced'
|
||||||
div = $.el 'div',
|
div = $.el 'div',
|
||||||
className: 'selectrice'
|
className: 'selectrice'
|
||||||
innerHTML: "<div>#{select.options[select.selectedIndex or '0'].textContent or ''}</div>"
|
innerHTML: "<div>#{select.options[select.selectedIndex or '0']?.textContent or ''}</div>"
|
||||||
$.on div, "click", Rice.cb.select
|
$.on div, "click", Rice.cb.select
|
||||||
|
|
||||||
$.after select, div
|
$.after select, div
|
||||||
Loading…
x
Reference in New Issue
Block a user