Skip to content

Commit

Permalink
Issue #6368: trim text of DOM element before checking
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonChesnokov authored and mportuga committed Aug 22, 2017
1 parent 151f32b commit 84ea8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/cellnav/js/cellnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@
if (originEvt && originEvt.type === 'focus'){return;}

function setNotifyText(text){
if (text === ariaNotifier.text()){return;}
if (text === ariaNotifier.text().trim()){return;}
ariaNotifier[0].style.clip = 'rect(0px,0px,0px,0px)';
/*
* This is how google docs handles clearing the div. Seems to work better than setting the text of the div to ''
Expand Down

0 comments on commit 84ea8fa

Please sign in to comment.