Merge pull request #12980 from Budibase/fix/autocomplete-insert
Fix for js binding auto complete
This commit is contained in:
commit
bcdad49800
|
@ -286,7 +286,13 @@ export const hbInsert = (value, from, to, text) => {
|
|||
return parsedInsert
|
||||
}
|
||||
|
||||
export function jsInsert(value, from, to, text, { helper, disableWrapping }) {
|
||||
export function jsInsert(
|
||||
value,
|
||||
from,
|
||||
to,
|
||||
text,
|
||||
{ helper, disableWrapping } = {}
|
||||
) {
|
||||
let parsedInsert = ""
|
||||
|
||||
const left = from ? value.substring(0, from) : ""
|
||||
|
|
Loading…
Reference in New Issue