mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-06 04:35:13 -05:00
find i-tag elements with *any* class (to circumvent the issue of selecting italicized text)
This commit is contained in:
@@ -30,8 +30,8 @@ $.extend(actionButtonInputBinding, {
|
||||
// retrieve current label and icon
|
||||
var label = $el.text();
|
||||
var icon = '';
|
||||
if ($el.find('i.fa, i.glyphicon').length > 0) {
|
||||
var icon_html = $el.find('i.fa, i.glyphicon')[0];
|
||||
if ($el.find('i[class]').length > 0) {
|
||||
var icon_html = $el.find('i[class]]')[0];
|
||||
icon = $(icon_html).prop('outerHTML');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user