SearchField losing focus when placed in (Silica)ListView header [not relevant]

asked 2014-04-01 20:09:17 +0300

coderus gravatar image

updated 2014-04-01 21:33:30 +0300

AL13N gravatar image

When SearchField component placed into a (Silica)ListView header as in this example it loses focus every model change. After moving SearchField out of ListView it is not losing focus anymore. So, either the example is incorrect or SearchField or (Silica)ListView should be fixed.

edit retag flag offensive reopen delete

The question has been closed for the following reason "question is not relevant or outdated" by coderus
close date 2014-04-02 09:38:31.987331



The example contains a line specifically with the comment "// prevent newly added list delegates from stealing focus away from the search field". Are you actually using that line?

ovekaaven ( 2014-04-02 00:57:45 +0300 )edit

For reference, @coderus gave a workaround for this on the development mailing list :

One should put currentItem: -1 in the listView.

Damien Caliste ( 2015-05-19 11:30:25 +0300 )edit