add preventDefault

Set `preventDefault` to true by default.
Remove it from the `data` object if set.

cc @nrw @jxson