mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
open smartmultiinput value help again (#1697)
This commit is contained in:
parent
9c1548c90f
commit
e8b3ac1736
|
@ -782,7 +782,9 @@ sap.ui.define("z2ui5/SmartMultiInputExt", ["sap/ui/core/Control", "sap/m/Token",
|
|||
}
|
||||
const aTokens = oEvent.getSource().getTokens();
|
||||
this.setProperty("rangeData", oEvent.getSource().getRangeData().map((oRangeData, iIndex) => {
|
||||
oRangeData.tokenText = aTokens[iIndex].getText();
|
||||
const oToken = aTokens[iIndex];
|
||||
oRangeData.tokenText = oToken.getText();
|
||||
oRangeData.tokenLongKey = oToken.data("longKey");
|
||||
return oRangeData;
|
||||
}));
|
||||
this.fireChange();
|
||||
|
@ -800,7 +802,10 @@ sap.ui.define("z2ui5/SmartMultiInputExt", ["sap/ui/core/Control", "sap/m/Token",
|
|||
}));
|
||||
//we need to set token text explicitly, as setRangeData does no recalculation
|
||||
input.getTokens().forEach((token, index) => {
|
||||
const sTokenText = aRangeData[index].TOKENTEXT;
|
||||
const oRangeData = aRangeData[index];
|
||||
token.data("longKey", oRangeData.TOKENLONGKEY);
|
||||
token.data("range", null);
|
||||
const sTokenText = oRangeData.TOKENTEXT;
|
||||
if (sTokenText) {
|
||||
token.setText(sTokenText);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user