jquery.suggestions: Do not show suggestions on prefilled values
authorFomafix <fomafix@googlemail.com>
Wed, 29 May 2019 09:18:47 +0000 (11:18 +0200)
committerFomafix <fomafix@googlemail.com>
Wed, 29 May 2019 22:01:19 +0000 (00:01 +0200)
commitfd573383038356f27da73d724848a6329ee3f637
tree2897e0dc52d97c4954eb17db75c6734d1254a3b8
parentceb1cd276fd6b46bf063b30232dd54af2c613b01
jquery.suggestions: Do not show suggestions on prefilled values

Show the suggestions on load only if the current value differs to the
defaultValue from the HTML. This prevents suggestions if there is
already a prefilled value in the input field.

Also direct call $.suggestions.update() instead of trigger a keypress.

This change is a follow-up to 72f61f7a5930cf03d4e8ddde62c2ef627b05dd69.

Bug: T224524
Change-Id: I501596996a20c62d1497bf66e23c7858b58bf4ea
resources/src/jquery/jquery.suggestions.js