Skip to content

Commit

Permalink
SVYX-813 TiNG typeahead shows wrong display value
Browse files Browse the repository at this point in the history
  • Loading branch information
lvostinar committed Mar 7, 2024
1 parent 1b0e800 commit 7d51e13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/bootstrapcomponents/src/typeahead/typeahead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ export class ServoyBootstrapTypeahead extends ServoyBootstrapBasefield<HTMLInput
this.valuelistID.getDisplayValue( result ).subscribe( val => {
if ( val ) {
this.realToDisplay.set( result, val );
this.instance.writeValue( result );
// if dpid is changed do not write the old value
if (result == this.dataProviderID ) this.instance.writeValue( result );
}
} );
display = this.realToDisplay.get(result); // in case the getDisplayValue above runs sync, before this return happen (uses of() not from())
Expand Down

0 comments on commit 7d51e13

Please sign in to comment.