getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

[v4] Tag field offers misleading create-feature ignoring the accept:options-setting / cuts off long options #5535

Closed twiro closed 1 year ago

twiro commented 1 year ago

This bug seems to be directly related to the same problems I experienced with the multiselect field in the latest v4-alpha-release.

Description

  1. The tag field ignores the blueprint-setting accept: options and always comes up with a misleading create-option whenever a search for a non-existing option is performed. (This happens with both static and dynamic options / using the create-feature doesn't do anything at all.)
  2. The tag field cuts of options with long titles due to its limited width.

Expected behavior

  1. The tag field should not contain a create-option if the blueprint contains accept: options.
  2. The tag field should not cut off options as long as there is enough space left to show them properly.

Screenshots

kirby-tag-field-bug-v4

To reproduce

  1. Take any example with options from the official tag-field-reference and try it out in the latest alpha-release.
  2. Add the accept: options-setting to the blueprint.
  3. Try to use the create-option.
  4. Try out some options with really long names.

Your setup

Kirby Version: 4.0.0-alpha.7.

bastianallgeier commented 1 year ago

The accept option is now fixed. The cut-off problem is a duplicate of https://github.com/getkirby/kirby/issues/5533