BrightspaceUI / text-input

Polymer-based web component for D2L text inputs
http://ui.developers.brightspace.com
Apache License 2.0
0 stars 5 forks source link

Default the "type" to "button" #15

Closed dlockhart closed 6 years ago

dlockhart commented 6 years ago

Button elements have a default type value of "submit", which will automatically submit a parent form when the user hits enter. This is typically not desired behaviour.

To prevent this, lets default the "type" attribute to "button".

This will be a breaking change, so will require a major version bump.