mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 13:48:08 +00:00
fix(ui/modules/Common/Form/ListForm): add same magic code at a lower depth...
This commit is contained in:
parent
241049e93b
commit
dfd0516399
1 changed files with 11 additions and 1 deletions
|
|
@ -176,7 +176,17 @@ RowLayout {
|
|||
|
||||
Component.onCompleted: {
|
||||
if ($value.length === 0) {
|
||||
textInput.forceActiveFocus()
|
||||
// FIXME: Find the source of this problem.
|
||||
//
|
||||
// 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 () {
|
||||
textInput.forceActiveFocus()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue