Skip to content

Commit

Permalink
fix: add type button to input group and select (#2154)
Browse files Browse the repository at this point in the history
* add type to select button 

Add a type to the select button so it no longer submits forms

* add type button to buttons in an input group
  • Loading branch information
IlieCiotir committed Mar 12, 2020
1 parent 42f0211 commit d5c48db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/core/src/lib/input-group/input-group.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
[options]="buttonOptions"
[glyph]="glyph"
[class]="inShellbar ? 'fd-shellbar__button' : ''"
(click)="buttonClicked($event)">
(click)="buttonClicked($event)"
type="button">
<ng-container *ngIf="!glyph">{{addOnText}}</ng-container>
</button>
</span>
Expand Down
1 change: 1 addition & 0 deletions libs/core/src/lib/select/select.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'fd-button--noborder': selectType === 'noborder',
'fd-button--splitborder': selectType === 'splitborder'
}"
type="button"
>
<fd-icon *ngIf="glyph" size="m" [glyph]="glyph" class="fd-template-icon icon-position"> </fd-icon>
<span class="fd-select-text-custom" [dir]="dir$ | async">{{ triggerValue }}</span>
Expand Down

0 comments on commit d5c48db

Please sign in to comment.