HomePhabricator

Avoid setting values that do not change in pagesuggester

Authored by thiemowmde.

Description

Avoid setting values that do not change in pagesuggester

This small change should cause the following change in behavior:

  • The value is not re-set when it does not change. This is a no-op in most browsers but causes a reset of the cursor position in some browsers. The comparison should avoid that at least in cases where it's nothing but confusing.
  • The "change" event is not triggered when the value does not change.

Bug: T103489
Change-Id: Ib0299e557ee2a3241f5681256ba8915faf6116d3