Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(input): Fix input errors CSS to properly display. #6298

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/input/demoErrors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<md-input-container class="md-block">
<label>Hourly Rate (USD)</label>
<input required type="number" step="any" name="rate" ng-model="project.rate" min="800"
max="4999" ng-pattern="/^1234$/" md-maxlength="20" />
max="4999" ng-pattern="/^1234$/" />

<div ng-messages="projectForm.rate.$error" multiple md-auto-hide="false">
<div ng-message="required">
Expand Down
12 changes: 11 additions & 1 deletion src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,18 @@ md-input-container {
}
}

// Note: This is a workaround to fix an ng-enter flicker bug
.md-auto-hide {
.md-input-message-animation {
&:not(.ng-animate) {
opacity: 0;
margin-top: -100px;
}
}
}

.md-input-message-animation {
&.ng-enter, &:not(.ng-animate) {
&.ng-enter {
opacity: 0;
margin-top: -100px;
}
Expand Down