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
Calling both submit() and cancel() methods of a Textarea element eventually emits a cancel event despite which of them was called. Both methods are identical:
Calling __listener() here in fact calls _listener due to the tethering done beforehand. Since the key.name is equal to 'escape', a call done(null, null) occurs inside the method. Inside done() either submit or a cancel event is emitted based on the second argument, value, which is the same in both cases. Here's the corresponding snippet of code:
Unless I'm missing something, all that means that both submit() and cancel() methods of the Textarea element in fact emit a cancel event.
The text was updated successfully, but these errors were encountered:
paper-lark
changed the title
Confluence of submit and cancel events in Textarea element.
Events submit and cancel are mixed together in Textarea element
Dec 26, 2017
Calling both
submit()
andcancel()
methods of aTextarea
element eventually emits acancel
event despite which of them was called. Both methods are identical:Calling
__listener()
here in fact calls_listener
due to the tethering done beforehand. Since thekey.name
is equal to'escape'
, a calldone(null, null)
occurs inside the method. Insidedone()
eithersubmit
or acancel
event is emitted based on the second argument,value
, which is the same in both cases. Here's the corresponding snippet of code:Unless I'm missing something, all that means that both
submit()
andcancel()
methods of theTextarea
element in fact emit acancel
event.The text was updated successfully, but these errors were encountered: