DEV: makes transformComplete async (#12752)
This is used to apply multiple transformations following user input.
This commit is contained in:
parent
99aae959a6
commit
191fac5c7c
|
@ -186,7 +186,7 @@ export default function (options) {
|
|||
});
|
||||
}
|
||||
|
||||
let completeTerm = function (term) {
|
||||
let completeTerm = async function (term) {
|
||||
if (term) {
|
||||
if (isInput) {
|
||||
me.val("");
|
||||
|
@ -196,7 +196,7 @@ export default function (options) {
|
|||
addInputSelectedItem(term, true);
|
||||
} else {
|
||||
if (options.transformComplete) {
|
||||
term = options.transformComplete(term);
|
||||
term = await options.transformComplete(term);
|
||||
}
|
||||
|
||||
if (term) {
|
||||
|
|
Loading…
Reference in New Issue