Changed preventDefault() to stopPropagation() - stupid mistack