You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Composer change event is not fired on empty text (for example, when I select all the text and delete it).
To Reproduce
Register a change handler on <nylas-composer> component, logging out all messages
When text is added or part of it deleted, the handler is correctly fire. However, if I delete all text, it's not fire.
(Please let me know if above is sufficient - I can provide a CodePen similar if necessary)
Expected behavior
Composer should fire change event when all text is deleted. I am uncertain if this event should also be fired with empty text during initialization.
Version: 1.1.6-canary.20in
Additional context
The issue seems to be in this line, because if (onchange) onchange(html) is only being run if html is not falsy.
The text was updated successfully, but these errors were encountered:
Describe the bug
Composer
change
event is not fired on empty text (for example, when I select all the text and delete it).To Reproduce
change
handler on<nylas-composer>
component, logging out all messages(Please let me know if above is sufficient - I can provide a CodePen similar if necessary)
Expected behavior
Composer should fire
change
event when all text is deleted. I am uncertain if this event should also be fired with empty text during initialization.Version:
1.1.6-canary.20
inAdditional context
The issue seems to be in this line, because
if (onchange) onchange(html)
is only being run ifhtml
is not falsy.The text was updated successfully, but these errors were encountered: