Search Box Bug?

Hi all,

Did anyone notice that on the top right search box, if you enter for example, lavazza, there are two scenarios:

  1. If a "suggestion box" pops below the search box, pressing enter renders no effect to the search box, pressing the 2nd enter leads to a correct behavior (showing the search result)

  2. If you type quicker than the "suggestion box" can react (appear), pressing the first enter leads to the correct behavior of showing the search result.

Tested with Firefox, Chrome on PC and Dolphin on Android, all showing the same behavior.

Cheers
JP

Comments

  • The first Enter keypress will dismiss the search suggestions <div> box. The second keypress submits the search query.

    So yes, if there are search suggestions shown, all you have to do is to press Enter twice. Wonder if this is using jQuery.

    • Thanks mate.

      I was thinking normally, the logic be just one enter needed no matter what or nothing has been selected.

      Looks like pressing enter to dismiss the suggestion box is redundant. Have not come across any "textbox" that requires twice enter to operate.

      Not remembering this behavior long ago on ozbargain.

  • Yeah the behaviour is not consistent with other auto-completers (widget is done in-house) & it's something that I need to fix.

Login or Join to leave a comment