Skip to content

Commit e79df79

Browse files
committed
SVY-20247 combobox onAction is not triggered on TiNG
1 parent 2c9af0f commit e79df79

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

projects/bootstrapcomponents/src/combobox/combobox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
ngbDropdownItem
3030
class="svy-ngbdropdownitem"
3131
[ngClass]="{active:valueComparator(value)}"
32-
(click)="updateValue(value.realValue)">
32+
(click)="updateValue(value.realValue, $event)">
3333
<!-- do not break the next line -->
3434
<span *ngIf="showAsHtml()" [innerHtml]="value.displayValue | formatFilter:format | htmlFilter | trustAsHtml:isTrustedHTML() | emptyValue"></span>
3535
<span *ngIf="!showAsHtml()">{{getRemainingValueBefore(value.displayValue | formatFilter:format | emptyValue)}}<strong>{{getStrongValue(value.displayValue | formatFilter:format | emptyValue)}}</strong>{{getRemainingValueAfter(value.displayValue | formatFilter:format | emptyValue)}}</span>

projects/bootstrapcomponents/src/combobox/combobox.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,13 @@ export class ServoyBootstrapCombobox extends ServoyBootstrapBasefield<HTMLDivEle
233233
}
234234
}
235235

236-
updateValue(realValue: any) {
236+
updateValue(realValue: any, event: Event) {
237237
this.dataProviderID = realValue;
238238
this.dataProviderIDChange.emit(this.dataProviderID);
239239
this.placeholderClass = null;
240+
if (this.onActionMethodID) {
241+
this.onActionMethodID(event, this.getDataTarget(event));
242+
}
240243
}
241244

242245
getRemainingValueBefore(value: any): any {

projects/bootstrapcomponents/src/floatlabelcombobox/floatlabelcombobox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
ngbDropdownItem
2727
class="svy-ngbdropdownitem"
2828
[ngClass]="{active:valueComparator(value)}"
29-
(click)="updateValue(value.realValue)">
29+
(click)="updateValue(value.realValue, $event)">
3030
<!-- do not break the next line -->
3131
{{getRemainingValueBefore(value.displayValue | formatFilter:format | emptyValue)}}<strong>{{getStrongValue(value.displayValue | formatFilter:format | emptyValue)}}</strong>{{getRemainingValueAfter(value.displayValue | formatFilter:format | emptyValue)}}
3232
</button>

0 commit comments

Comments
 (0)