Skip to content

Commit 84ea8fa

Browse files
AntonChesnokovmportuga
authored andcommitted
Issue #6368: trim text of DOM element before checking
1 parent 151f32b commit 84ea8fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/cellnav/js/cellnav.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@
814814
if (originEvt && originEvt.type === 'focus'){return;}
815815

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

0 commit comments

Comments
 (0)