Problem/Motivation

In #3308320: Allow set up minimal search string length, an option was introduced to set the minimum search string length to 0, causing a list with all options to appear when focusing the field. This seems to be quite buggy at times: the dropdown with results sometimes doesn't disappear when minimum search length is 0. Additionally, it seems like sometimes entered values are lost after submitting the form. This might be related, but I'm not sure.

Steps to reproduce

  1. Focus a Tagify widget with minimum search string length set to 0
  2. Unfocus the field without selecting a value from the dropdown
  3. The dropdown disappears and immediately appears again. There's no way to make it disappear, unless you select an option.

Issue fork tagify-3346104

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DieterHolvoet created an issue. See original summary.

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

gxleano’s picture

Issue summary: View changes
Status: Active » Needs review
gxleano’s picture

Status: Needs review » Needs work
gxleano’s picture

Status: Needs work » Needs review
DieterHolvoet’s picture

Status: Needs review » Needs work
FileSize
4.1 MB

Unfortunately that doesn't fix it. Here's a video demonstrating the problem: https://www.drupal.org/files/issues/2023-04-29/CleanShot%202023-04-29%20...

gxleano’s picture

@DieterHolvoet I wasn't be able to reproduce the buggy behavior.

I have been testing in a clean installation of Drupal 9 and 10, and I can't reproduce the bug.

Could you provide more info about your setup?

- Which version of Drupal are you using?
- Are you combining the module with something else (Custom theme, contrib module)?

gxleano’s picture

Status: Needs work » Postponed (maintainer needs more info)
gxleano’s picture

Closing this issue, it natively works as expected and we have no further information about the problem.

gxleano’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)
DieterHolvoet’s picture

For what it's worth, I just tested this again with the latest version and can't reproduce it anymore. Better later than never :) Thanks for the effort and happy new year!