create account

RE: File Drag & Drop module in Electron with Text Editing Example by josephace135

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @pckurdu/file-drag-and-drop-module-in-electron-with-text-editing-example

· @josephace135 ·
$3.29
Hi @pckurdu,

While reading your tutorial, I just notice something that I didn't found in the code, especially when you discussed about `drag-file` id element. In the code, it has `e.preventDefault();` but when you elaborate the code functions instead of having `preventDefault()`, you define this one `preventEvent()` instead.
As seen in this screenshot I took,
<center>![](https://cdn.steemitimages.com/DQmWhg247ZWmT5HyXdu3tTpsC9Wks86JfjnmrvqKC4fx14w/blob)</center>
 And additionally in this part of the tutorial,
<center>![](https://cdn.steemitimages.com/DQmcAAry9TaYDz1Jco7a7f7aZVFvbBXiqWEiYYrrHJCPURs/blob)</center>.

It appears that `preventDefault()` are found in those codes, but it is confusing since it wasn't defined. Please clarify, if its `preventDefault()` or `preventEvent()`so readers won't get confused.

Thank you.
👍  , ,
properties (23)
authorjosephace135
permlinkre-pckurdu-file-drag-and-drop-module-in-electron-with-text-editing-example-20180618t111520173z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["pckurdu"],"image":["https://cdn.steemitimages.com/DQmWhg247ZWmT5HyXdu3tTpsC9Wks86JfjnmrvqKC4fx14w/blob","https://cdn.steemitimages.com/DQmcAAry9TaYDz1Jco7a7f7aZVFvbBXiqWEiYYrrHJCPURs/blob"],"app":"steemit/0.1"}
created2018-06-18 11:15:24
last_update2018-06-18 11:15:24
depth1
children2
last_payout2018-06-25 11:15:24
cashout_time1969-12-31 23:59:59
total_payout_value2.467 HBD
curator_payout_value0.819 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length832
author_reputation80,256,970,184,580
root_title"File Drag & Drop module in Electron with Text Editing Example"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,212,528
net_rshares1,529,842,006,089
author_curate_reward""
vote details (3)
@pckurdu ·
Thank you for your comment. the function name will be `preventDefault()`. I made the necessary corrections.
properties (22)
authorpckurdu
permlinkre-josephace135-re-pckurdu-file-drag-and-drop-module-in-electron-with-text-editing-example-20180618t114011822z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-06-18 11:40:15
last_update2018-06-18 11:40:15
depth2
children0
last_payout2018-06-25 11:40:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length107
author_reputation23,385,816,696,918
root_title"File Drag & Drop module in Electron with Text Editing Example"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,214,875
net_rshares0
@utopian-io ·
Hey @josephace135
Here's a tip for your valuable feedback! @Utopian-io loves and incentivises informative comments.

**Contributing on Utopian**
Learn how to contribute on <a href="https://join.utopian.io">our website</a>.

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlink20180621t203836484z
categoryutopian-io
json_metadata{"tags":["utopian.tip"],"app":"utopian-io"}
created2018-06-21 20:38:36
last_update2018-06-21 20:38:36
depth2
children0
last_payout2018-06-28 20:38:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length412
author_reputation152,955,367,999,756
root_title"File Drag & Drop module in Electron with Text Editing Example"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,688,662
net_rshares0