mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
added another check in the JS to make sure that we're finding the correct icon
This commit is contained in:
@@ -37,7 +37,9 @@ $.extend(actionButtonInputBinding, {
|
||||
// from being mistakenly selected)
|
||||
if ($el.find('i[class]').length > 0) {
|
||||
var icon_html = $el.find('i[class]')[0];
|
||||
icon = $(icon_html).prop('outerHTML');
|
||||
if (icon_html == $el.children()[0]) { // another check for robustness
|
||||
icon = $(icon_html).prop('outerHTML');
|
||||
}
|
||||
}
|
||||
|
||||
// update the requested properties
|
||||
|
||||
Reference in New Issue
Block a user