Skip to content

Commit 47ebecb

Browse files
authored
Merge pull request #635 from jamestalton/fix-tooltip-buttons
Tooltip controls buttons need type of button to work in forms
2 parents 6e5a3f8 + 198e2dd commit 47ebecb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/dialog/tooltip/tooltip-definition.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component, Input, HostBinding } from "@angular/core";
33
@Component({
44
selector: "ibm-tooltip-definition",
55
template: `
6-
<button class="bx--tooltip__trigger" [attr.aria-describedby]="id">
6+
<button type="button" class="bx--tooltip__trigger" [attr.aria-describedby]="id">
77
<ng-content></ng-content>
88
</button>
99
<div

src/dialog/tooltip/tooltip-icon.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Component, Input, HostBinding } from "@angular/core";
44
selector: "ibm-tooltip-icon",
55
template: `
66
<button
7+
type="button"
78
class="bx--tooltip__trigger"
89
[ngClass]="{
910
'bx--tooltip--icon__bottom' : placement === 'bottom',

0 commit comments

Comments
 (0)