Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

updated hastext method to not account for zero space width chars #2163

Closed
wants to merge 1 commit into from

Conversation

ajith23
Copy link
Contributor

@ajith23 ajith23 commented Aug 20, 2019

Summary: \u200B (zero space width chars) is put into the blockmap while inserting tokens. Therfore hastext returns true even when there is no text in the input. Updated hastext method to not account for zero space width chars.

Reviewed By: claudiopro

Differential Revision: D16868475

Summary: \u200B (zero space width chars) is put into the blockmap while inserting tokens. Therfore hastext returns true even when there is no text in the input. Updated hastext method to not account for zero space width chars.

Reviewed By: claudiopro

Differential Revision: D16868475

fbshipit-source-id: ebbc392dbddddedfd13fd6ed3d54d6ba476542ae
@facebook-github-bot
Copy link

This pull request has been merged in 85aa3a3.

jdecked pushed a commit to twitter-forks/draft-js that referenced this pull request Oct 9, 2019
…ebookarchive#2163)

Summary:
Pull Request resolved: facebookarchive#2163

\u200B (zero space width chars) is put into the blockmap while inserting tokens. Therfore hastext returns true even when there is no text in the input. Updated hastext method to not account for zero space width chars.

Reviewed By: claudiopro

Differential Revision: D16868475

fbshipit-source-id: 1b0c9142c54e9c45d19fde516167ef34d02e719d
mmissey pushed a commit to mmissey/draft-js that referenced this pull request Mar 24, 2020
…ebookarchive#2163)

Summary:
Pull Request resolved: facebookarchive#2163

\u200B (zero space width chars) is put into the blockmap while inserting tokens. Therfore hastext returns true even when there is no text in the input. Updated hastext method to not account for zero space width chars.

Reviewed By: claudiopro

Differential Revision: D16868475

fbshipit-source-id: 1b0c9142c54e9c45d19fde516167ef34d02e719d
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
Summary:
Pull Request resolved: facebookarchive/draft-js#2163

\u200B (zero space width chars) is put into the blockmap while inserting tokens. Therfore hastext returns true even when there is no text in the input. Updated hastext method to not account for zero space width chars.

Reviewed By: claudiopro

Differential Revision: D16868475

fbshipit-source-id: 1b0c9142c54e9c45d19fde516167ef34d02e719d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants