Bug correction on dropdown button

When the color picker is put into a form, clicking on the dropdown button submits the form.
To avoid this behaviour, we set attribute "type" to value "button" in the button element.