---
exercises:
- exercise: "[[ex1]]"
sets:
- weight: 3234
reps: 3
comment: 3ws
- exercise: "[[ex1]]"
sets:
---
```dataviewjs
const mb = app.plugins.getPlugin('obsidian-meta-bind-plugin').api
const frontmatter = dv.current().file.frontmatter
const notePath = dv.current().file.path
frontmatter.exercises.forEach((x, i) => {
const is = String(i)
const headlineOptions = {
renderChildType: 'inline',
declaration: 'VIEW[{exercises['+ i +'].exercise}][text(renderMarkdown)]'
}
const tableOptions = {
bindTarget: mb.createBindTarget('frontmatter', notePath, ['exercises', String(i), 'sets'], true),
tableHead: ['', 'Weight', 'Reps', 'Comment'],
columns: [
'INPUT[toggle:scope^completed]',
'INPUT[number(class(meta-bind-small-width),placeholder(weight)):scope^weight]',
'INPUT[number(class(meta-bind-small-width),placeholder(reps)):scope^reps]',
'INPUT[text(placeholder(comment)):scope^comment]',
],
};
console.log(i)
console.log(x)
const headlineContainer = document.createElement('div')
this.container.appendChild(headlineContainer)
const headline = mb.createViewFieldMountable(notePath, headlineOptions);
mb.wrapInMDRC(headline, headlineContainer, this.component)
const tableContainer = document.createElement('div')
this.container.appendChild(tableContainer)
const table = mb.createTableMountable(notePath, tableOptions)
mb.wrapInMDRC(table, tableContainer, this.component)
})
```
Please fill out these Check-boxes
Plugin Version
1.4.1
This Issue Occurs on
Debug Info
Describe the Issue
When I type text in the metabind field, the field loses focus after a single character, which prevents further typing
Steps to Reproduce
Instal meta bind, dataviewjs, enable javascript inside the notes
Create a note with the following content:
Go into reading mode
Try typing few characters into the field. The field loses focus after the first character preventing further typing.
Expected Behavior
When I type few consective characters into the field, the field does not lose focus after the first one and allows to enter more characters.