AppRun is a JavaScript library for developing high-performance and reliable web applications using the elm inspired architecture, events and components.
I'm trying to implement a simple JSON file drop in my SPA. I have tried both the $ondrop="ondrop" and the $ondrop={ondrop} way, but the e.preventDefault() does not seem to have any effect as my JSON data just replaces my SPA component when I drop the file. Is there a simple fix for this?
I'm trying to implement a simple JSON file drop in my SPA. I have tried both the
$ondrop="ondrop"
and the$ondrop={ondrop}
way, but thee.preventDefault()
does not seem to have any effect as my JSON data just replaces my SPA component when I drop the file. Is there a simple fix for this?