Open arya-himanshu opened 6 years ago
you can use pattern
and (onError)
for that.
P.S: this will not prevent special character. But will execute myHandleError($event)
and you can write you required code there.
<inline-editor type="text" [(ngModel)]="editableText" (onSave)="saveEditable($event)" name="editableText1" size="8" disabled="true" min="1" max="8" pattern="^[a-zA-Z]{1,3}" (onError)="myHandleError($event)"></inline-editor>
How to prevent special character in input box