Skip to content

Commit

Permalink
Fixed #3461
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Aug 23, 2017
1 parent ba959fd commit c82c991
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface LocaleSettings {
template: `
<span [ngClass]="{'ui-calendar':true,'ui-calendar-w-btn':showIcon}" [ngStyle]="style" [class]="styleClass">
<ng-template [ngIf]="!inline">
<input #inputfield type="text" [attr.id]="inputId" [attr.required]="required" [value]="inputFieldValue" (focus)="onInputFocus($event)" (keydown)="onInputKeydown($event)" (click)="datepickerClick=true" (blur)="onInputBlur($event)"
<input #inputfield type="text" [attr.id]="inputId" [attr.name]="name" [attr.required]="required" [value]="inputFieldValue" (focus)="onInputFocus($event)" (keydown)="onInputKeydown($event)" (click)="datepickerClick=true" (blur)="onInputBlur($event)"
[readonly]="readonlyInput" (input)="onUserInput($event)" [ngStyle]="inputStyle" [class]="inputStyleClass" [placeholder]="placeholder||''" [disabled]="disabled" [attr.tabindex]="tabindex"
[ngClass]="'ui-inputtext ui-widget ui-state-default ui-corner-all'"
><button type="button" [icon]="icon" pButton *ngIf="showIcon" (click)="onButtonClick($event,inputfield)"
Expand Down Expand Up @@ -168,6 +168,8 @@ export class Calendar implements AfterViewInit,AfterViewChecked,OnInit,OnDestroy

@Input() inputId: string;

@Input() name: string;

@Input() inputStyleClass: string;

@Input() placeholder: string;
Expand Down
6 changes: 6 additions & 0 deletions src/app/showcase/components/calendar/calendardemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ <h3>Properties</h3>
<td>null</td>
<td>Identifier of the focus input to match a label defined for the component.</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>null</td>
<td>Name of the input element.</td>
</tr>
<tr>
<td>placeholder</td>
<td>string</td>
Expand Down

0 comments on commit c82c991

Please sign in to comment.