Skip to content

Commit

Permalink
[common] Fix aria-label attr for buttons after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaSvinareva committed Apr 2, 2024
1 parent 2edcf1d commit 6815ad2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/common/main/lib/component/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,8 @@ define([
}

if (!this.caption) {
var $btn = $('button', cmpEl).length>0 ? $('button', cmpEl) : cmpEl;
var cmpEl = this.cmpEl,
$btn = $('button', cmpEl).length>0 ? $('button', cmpEl) : cmpEl;
$btn.attr('aria-label', (typeof hint == 'string') ? hint : hint[0]);
}
},
Expand Down

0 comments on commit 6815ad2

Please sign in to comment.