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
Can I ask what would be the purpose of this? I'm running into a problem because of this -- I would not want to prevent the default action in all cases.
The case is like this:
A component has a <form> with on-submit="submit($event)" ... I'm passing that to the main app with this.emit(), and the main app catches it or not. If it doesn't catch it, I would like to perform the default action. Here's where I run into trouble -- the event is always prevented altough I would like to perform the default action sometimes.
I could try to find out if there are listeners in the main app (and if there are not, I could do form.submit() manually), but not sure if there is a way to do that. This wouldn't feel as clean though.
(I thought it would be better to ask it here on GitHub because this might be an "issue".)
The text was updated successfully, but these errors were encountered:
There is this function:
https://github.com/derbyjs/derby-parsing/blob/master/lib/markup.js#L24-L28
Can I ask what would be the purpose of this? I'm running into a problem because of this -- I would not want to prevent the default action in all cases.
The case is like this:
A component has a
<form>
withon-submit="submit($event)"
... I'm passing that to the main app withthis.emit()
, and the main app catches it or not. If it doesn't catch it, I would like to perform the default action. Here's where I run into trouble -- the event is always prevented altough I would like to perform the default action sometimes.I could try to find out if there are listeners in the main app (and if there are not, I could do
form.submit()
manually), but not sure if there is a way to do that. This wouldn't feel as clean though.(I thought it would be better to ask it here on GitHub because this might be an "issue".)
The text was updated successfully, but these errors were encountered: