DEV: makes transformComplete async (#12752)

This is used to apply multiple transformations following user input.
This commit is contained in:
Joffrey JAFFEUX 2021-04-19 11:40:23 +02:00 committed by GitHub
parent 99aae959a6
commit 191fac5c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {