Problem/Motivation

Firefox browser can remember chosen input values, and when the user chooses items, reloads a page, and tries to choose another item - there will be added new items with old items that the user has chosen before the page reloading. It is wrong behavior.

Proposed resolution

Need to add autocomplete="off" attribute to hidden input of entity browser widget, and Firefox won't remember user inputs.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

r_cheh created an issue. See original summary.

r_cheh’s picture

r_cheh’s picture

Status: Active » Needs review
r_cheh’s picture

Priority: Normal » Major

anybody made their first commit to this issue’s fork.

anybody’s picture

Status: Needs review » Needs work

@r_cheh thanks, could you create a MR from this please?

anybody’s picture

Version: 8.x-2.9 » 8.x-2.x-dev
Status: Needs work » Needs review

Sorry it's already there, I didn't see it.

anybody’s picture

Status: Needs review » Reviewed & tested by the community
anybody’s picture

Still seems like a FF bug to me for a hidden field... doesn't make much sense to me.
https://stackoverflow.com/questions/9787135/firefox-caches-hidden-inputs
https://github.com/rails/rails/issues/42610

  • anybody committed bcfe3027 on 8.x-2.x authored by r_cheh
    Issue #3426665 by r_cheh, anybody: Wrong behavior of item selection in...
anybody’s picture

Status: Reviewed & tested by the community » Fixed

Merged, as this presumably won't do any harm.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.