fix tastiera che sparisce in ricerca: remove incrementale al posto di clear() (il reset ricreava l'header col campo, perdendo il focus)
This commit is contained in:
@@ -117,7 +117,11 @@ Page {
|
|||||||
|
|
||||||
function updateList(q) {
|
function updateList(q) {
|
||||||
q = norm(q.trim())
|
q = norm(q.trim())
|
||||||
resultModel.clear()
|
// Rimozione SENZA clear(): clear() resetta il modello e su questo kit
|
||||||
|
// ricrea l'header della lista (dove sta il SearchField) facendo
|
||||||
|
// perdere il focus -> tastiera che si chiude a ogni lettera.
|
||||||
|
if (resultModel.count > 0)
|
||||||
|
resultModel.remove(0, resultModel.count)
|
||||||
if (q === "") {
|
if (q === "") {
|
||||||
hintMsg = qsTr("Type to search among all Italian towns and known ports.")
|
hintMsg = qsTr("Type to search among all Italian towns and known ports.")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user