You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p-spinner is apparently not working correctly when used with ONLY the size parameter:
With this <p-spinner [(ngModel)]='dailyRate' min='0'></p-spinner>
everything works fine.
But with <p-spinner [(ngModel)]='dailyRate' min='0' size='10' ></p-spinner>
the spinner do not seamns to intercept any keyboard input, only the arrows can be used.
The issue seams to come from the fact that adding the size attribute automaticly add the maxlength attribute with a value of 0 to the p-spinner underlying input HTMLElement.
One work around is to also add the maxlength attribute to the p-spinner with a value above 0.
So this: <p-spinner [(ngModel)]='dailyRate' min='0' size='10' maxlength='10' ></p-spinner>
Solve the problem.
PrimeNg rc.3
Angular 2.1.2
The text was updated successfully, but these errors were encountered:
p-spinner is apparently not working correctly when used with ONLY the size parameter:
With this
<p-spinner [(ngModel)]='dailyRate' min='0'></p-spinner>
everything works fine.
But with
<p-spinner [(ngModel)]='dailyRate' min='0' size='10' ></p-spinner>
the spinner do not seamns to intercept any keyboard input, only the arrows can be used.
The issue seams to come from the fact that adding the size attribute automaticly add the maxlength attribute with a value of 0 to the p-spinner underlying input HTMLElement.
One work around is to also add the maxlength attribute to the p-spinner with a value above 0.
So this:
<p-spinner [(ngModel)]='dailyRate' min='0' size='10' maxlength='10' ></p-spinner>
Solve the problem.
The text was updated successfully, but these errors were encountered: