UI/ fix tooltip submitting form (#16659)

* fix tooltip submitting form

* add changelog

* add changelog actually
This commit is contained in:
claire bontempo 2022-08-09 20:51:29 -07:00 committed by GitHub
parent 8b1a9da460
commit a1cef4a72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

3
changelog/16659.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fix info tooltip submitting form
```

View File

@ -7,4 +7,10 @@ export default Component.extend({
attributeBindings: ['data-test-component'],
tagName: 'span',
classNames: ['is-inline-block'],
actions: {
preventSubmit(e) {
e.preventDefault();
},
},
});

View File

@ -4,6 +4,7 @@
@type="button"
class="tool-tip-trigger button is-ghost is-compact"
data-test-tool-tip-trigger={{true}}
onclick={{action "preventSubmit"}}
>
<Icon @name="info" class="auto-width" aria-label="help" />
</d.Trigger>