]> source.dussan.org Git - vaadin-framework.git/commit
Fix OptionGroup elements losing focus on value change (#10451)
authorArtem Godin <artem@vaadin.com>
Wed, 2 Oct 2013 14:07:14 +0000 (17:07 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 3 Oct 2013 12:08:42 +0000 (12:08 +0000)
commit267a4cae6de31d143c3d8d1d8dd79d4616896603
treedacf102c9c4b41221a98a7a0d26852c950e7b929
parent0e9ff32598ed86d5f24a8bce5c5c898d81dc2c84
Fix OptionGroup elements losing focus on value change (#10451)

The misbehavior was caused by VOptionGroup.buildOptions recreating
associated panel on every change by removing and adding new elements.
With this fix applied it tries to update existing elements,
distinguishing them by assigned keys. It will recreate panel though if
elements are reordered or new elements were added/removed.

Change-Id: I1245b2ff30ce1932614c1eac37bd0131cbd29dd7
client/src/com/vaadin/client/ui/VOptionGroup.java
uitest/src/com/vaadin/tests/components/optiongroup/OptionGroupRetainFocusKeyboardValueChange.html [new file with mode: 0644]
uitest/src/com/vaadin/tests/components/optiongroup/OptionGroupRetainFocusKeyboardValueChange.java [new file with mode: 0644]