Skip to content

Commit

Permalink
fix(bootstrap): make sure error feedback is always visible
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Sep 20, 2022
1 parent 540fe74 commit 1722144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/validated-input/error.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<span
class={{if
(macroCondition (macroGetOwnConfig "isBootstrap"))
"invalid-feedback"
"d-block invalid-feedback"
}}
...attributes
>
Expand Down
1 change: 1 addition & 0 deletions tests/integration/components/validated-input/error-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module("Integration | Component | validated-input/error", function (hooks) {
await render(hbs`<ValidatedInput::Error @errors={{this.errors}} />`);

assert.dom("span").hasClass("invalid-feedback");
assert.dom("span").hasClass("d-block");
assert.dom("span").hasText("foo, bar, baz");
});
});

0 comments on commit 1722144

Please sign in to comment.