Skip to content

Commit

Permalink
fix: (core) Add even more disabled attributes (SAP#2975)
Browse files Browse the repository at this point in the history
  • Loading branch information
salarenko authored Aug 4, 2020
1 parent 94ef775 commit 5dc5097
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions libs/core/src/lib/date-picker/date-picker.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,29 @@
<fd-popover-control>
<fd-input-group [compact]="compact" [state]="state" [disabled]="disabled">
<input
type="text"
class="fd-input"
fd-input-group-input
type="text"
[compact]="compact"
[disabled]="disabled"
[placeholder]="placeholder"
[class.is-error]="isInvalidDateInput && useValidation"
[attr.aria-label]="dateInputLabel"
[(ngModel)]="inputFieldDate"
[placeholder]="placeholder"
(ngModelChange)="handleInputChange($event)"
(click)="openCalendar()"
[compact]="compact"
[ngClass]="{ 'is-error': isInvalidDateInput && useValidation }"
/>
<span fd-input-group-addon [button]="true" [compact]="compact">
<button
fd-button
[attr.tabindex]="buttonFocusable ? 0 : -1"
[glyph]="'appointment-2'"
[fdType]="'transparent'"
fdType="transparent"
glyph="appointment-2"
[compact]="compact"
(click)="toggleCalendar()"
[disabled]="disabled"
[attr.aria-label]="displayCalendarToggleLabel"
[attr.tabindex]="buttonFocusable ? 0 : -1"
[attr.aria-expanded]="isOpen"
(click)="toggleCalendar()"
></button>
</span>
</fd-input-group>
Expand Down

0 comments on commit 5dc5097

Please sign in to comment.