Added line to prevent auto submission of form

When color palette is placed inside a form, selecting a color submits the form. To fix this issue its necessary to add e.preventDefault();