WebUI: FocusRowBehavior, remove the first control logic from
|removeObservers_()| When an row is updated, the row is reprocessed by calling |addItems_()| which removes all the observers, repopulates the row with elements that have the focus-row-control attribute and updates the first control if needed. The code that was removing observers removed the keydown event handler from the first control. The code that updates the first control only will register a keydown event handler if the first control has changed. In the scenario that the row has been updated and the first control did not change, the first control event handler will be removed and never added back. Bug: 927272 Change-Id: Iaf498889a4a78b33413751bcd9f74731ce2a7e01 Reviewed-on: https://chromium-review.googlesource.com/c/1460061Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Esmael El-Moslimany <aee@chromium.org> Auto-Submit: Esmael El-Moslimany <aee@chromium.org> Cr-Commit-Position: refs/heads/master@{#630614}
Showing
Please register or sign in to comment