Skip to content

Commit 8f20d79

Browse files
1 parent 5ed9ec3 commit 8f20d79

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/02/z2ui5.wapa.controller_-app.controller.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,9 @@ sap.ui.define("z2ui5/SmartMultiInputExt", ["sap/ui/core/Control", "sap/m/Token",
782782
}
783783
const aTokens = oEvent.getSource().getTokens();
784784
this.setProperty("rangeData", oEvent.getSource().getRangeData().map((oRangeData, iIndex) => {
785-
oRangeData.tokenText = aTokens[iIndex].getText();
785+
const oToken = aTokens[iIndex];
786+
oRangeData.tokenText = oToken.getText();
787+
oRangeData.tokenLongKey = oToken.data("longKey");
786788
return oRangeData;
787789
}));
788790
this.fireChange();
@@ -800,7 +802,10 @@ sap.ui.define("z2ui5/SmartMultiInputExt", ["sap/ui/core/Control", "sap/m/Token",
800802
}));
801803
//we need to set token text explicitly, as setRangeData does no recalculation
802804
input.getTokens().forEach((token, index) => {
803-
const sTokenText = aRangeData[index].TOKENTEXT;
805+
const oRangeData = aRangeData[index];
806+
token.data("longKey", oRangeData.TOKENLONGKEY);
807+
token.data("range", null);
808+
const sTokenText = oRangeData.TOKENTEXT;
804809
if (sTokenText) {
805810
token.setText(sTokenText);
806811
}

0 commit comments

Comments
 (0)