File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
libs/fabric/src/lib/components/text-field Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,9 @@ export class FabBaseTextFieldComponent extends ReactWrapperComponent<ITextFieldP
6565 @Input ( ) renderPrefix ?: InputRendererOptions < ITextFieldProps > ;
6666 @Input ( ) renderSuffix ?: InputRendererOptions < ITextFieldProps > ;
6767
68- @Output ( ) readonly onFocus = new EventEmitter < FocusEvent > ( ) ;
6968 @Output ( ) readonly onClick = new EventEmitter < MouseEvent > ( ) ;
69+ @Output ( ) readonly onFocus = new EventEmitter < FocusEvent > ( ) ;
70+ @Output ( ) readonly onBlur = new EventEmitter < Event > ( ) ;
7071
7172 @Output ( ) readonly onChange = new EventEmitter < { event : Event ; newValue ?: string } > ( ) ;
7273 @Output ( ) readonly onBeforeChange = new EventEmitter < { newValue : any } > ( ) ;
@@ -104,9 +105,12 @@ export class FabBaseTextFieldComponent extends ReactWrapperComponent<ITextFieldP
104105 this . onFocus . emit ( ev && ev . nativeEvent ) ;
105106 }
106107
108+ onBlurHandler ( ev ?: React . SyntheticEvent ) {
109+ this . onBlur . emit ( ev && ev . nativeEvent ) ;
110+ }
111+
107112 onChangeHandler ( event : React . FormEvent < HTMLInputElement | HTMLTextAreaElement > , newValue ?: string ) {
108113 this . onChange . emit ( { event : event . nativeEvent , newValue } ) ;
109-
110114 this . valueChange . emit ( newValue ) ;
111115 }
112116
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ import { FabBaseTextFieldComponent } from './base-text-field.component';
6060 [NotifyValidationResult]="onNotifyValidationResultHandler"
6161 (onClick)="onClickHandler($event)"
6262 (onFocus)="onFocusHandler($event)"
63+ (onBlur)="onBlurHandler($event)"
6364 >
6465 </MaskedTextField>
6566 ` ,
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ import { FabBaseTextFieldComponent } from './base-text-field.component';
6060 [NotifyValidationResult]="onNotifyValidationResultHandler"
6161 (onClick)="onClickHandler($event)"
6262 (onFocus)="onFocusHandler($event)"
63+ (onBlur)="onBlurHandler($event)"
6364 >
6465 </TextField>
6566 ` ,
You can’t perform that action at this time.
0 commit comments