Commit 241049e9 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Common/Form/ListForm): remove "magic code"

parent 1ea9cb67
......@@ -173,19 +173,11 @@ RowLayout {
width: parent.width
onEditingFinished: _handleEditionFinished(index, text)
}
Component.onCompleted: {
if ($value.length === 0) {
// Magic code. If it's the first inserted value,
// an event or a callback steal the item focus.
// I suppose it's an internal Qt qml event...
//
// So, I choose to run a callback executed after this
// internal event.
Utils.setTimeout(listForm, 0, function () {
Component.onCompleted: {
if ($value.length === 0) {
textInput.forceActiveFocus()
})
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment