I have problem regarding validating the ReactQuill.
The Scenario: When i remove the input in ReactQuill Textarea the last value will be
<p><br></p>
Question: How to validate if the last value would be <p><br></p> i tried to get value and validate it. but still the value is inserting without data. I don't know where's the problem in my code or in the ReactQuill
State:
const datas = {
textValue: this.state.text
}
My Condition:
if(datas.textValue.length === 0 || datas.textValue.value == '<p><br></p>')
{
return 'false';
}
else
{
return 'true';
}
