Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verona-modules-aspect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IQB
verona-modules-aspect
Commits
377e420d
Commit
377e420d
authored
3 years ago
by
jojohoch
Browse files
Options
Downloads
Patches
Plain Diff
[player] Rename click method to onClearButtonClick
parent
62df136c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/common/element-components/text-field.component.ts
+3
-3
3 additions, 3 deletions
projects/common/element-components/text-field.component.ts
with
3 additions
and
3 deletions
projects/common/element-components/text-field.component.ts
+
3
−
3
View file @
377e420d
...
@@ -26,7 +26,7 @@ import { TextFieldElement } from '../models/text-field-element';
...
@@ -26,7 +26,7 @@ import { TextFieldElement } from '../models/text-field-element';
(focus)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(input) : null"
(focus)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(input) : null"
(blur)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(null): null">
(blur)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(null): null">
<button *ngIf="elementModel.clearable" matSuffix mat-icon-button aria-label="Clear"
<button *ngIf="elementModel.clearable" matSuffix mat-icon-button aria-label="Clear"
(click)="onClick($event)">
(click)="
onClearButt
onClick($event)">
<mat-icon>close</mat-icon>
<mat-icon>close</mat-icon>
</button>
</button>
<mat-error *ngIf="elementFormControl.errors">
<mat-error *ngIf="elementFormControl.errors">
...
@@ -52,7 +52,7 @@ import { TextFieldElement } from '../models/text-field-element';
...
@@ -52,7 +52,7 @@ import { TextFieldElement } from '../models/text-field-element';
(focus)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(input) : null"
(focus)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(input) : null"
(blur)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(null): null">
(blur)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(null): null">
<button *ngIf="elementModel.clearable" matSuffix mat-icon-button aria-label="Clear"
<button *ngIf="elementModel.clearable" matSuffix mat-icon-button aria-label="Clear"
(click)="onClick($event)">
(click)="
onClearButt
onClick($event)">
<mat-icon>close</mat-icon>
<mat-icon>close</mat-icon>
</button>
</button>
<mat-error *ngIf="elementFormControl.errors">
<mat-error *ngIf="elementFormControl.errors">
...
@@ -68,7 +68,7 @@ export class TextFieldComponent extends FormElementComponent {
...
@@ -68,7 +68,7 @@ export class TextFieldComponent extends FormElementComponent {
@
Output
()
onFocusChanged
=
new
EventEmitter
<
HTMLElement
|
null
>
();
@
Output
()
onFocusChanged
=
new
EventEmitter
<
HTMLElement
|
null
>
();
elementModel
!
:
TextFieldElement
;
elementModel
!
:
TextFieldElement
;
onClick
(
event
:
MouseEvent
)
:
void
{
onClearButt
onClick
(
event
:
MouseEvent
)
:
void
{
this
.
elementFormControl
.
setValue
(
''
);
this
.
elementFormControl
.
setValue
(
''
);
event
.
preventDefault
();
event
.
preventDefault
();
event
.
stopPropagation
();
event
.
stopPropagation
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment