diff --git a/addons/website/static/src/js/utils.js b/addons/website/static/src/js/utils.js index 3d1eb03bef4..d9b9d9b9a62 100644 --- a/addons/website/static/src/js/utils.js +++ b/addons/website/static/src/js/utils.js @@ -112,7 +112,7 @@ function autocompleteWithPages(rpc, $input, options) { // choose url in dropdown with arrow change ev.target.value without trigger_up // so cannot check here if value has been updated ev.target.value = ui.item.value; - options?.urlChosen(); + options.urlChosen?.(); ev.preventDefault(); }, });