Skip to content

Commit

Permalink
fix: #983 placeholder bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Apr 26, 2022
1 parent 892ca58 commit 073fec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const util = {
* @returns {Boolean}
*/
onlyZeroWidthSpace: function (text) {
if (!text) return false;
if (text === null || text === undefined) return false;
if (typeof text !== 'string') text = text.textContent;
return text === '' || this.onlyZeroWidthRegExp.test(text);
},
Expand Down

0 comments on commit 073fec6

Please sign in to comment.