Tags field should hide "Add" button when disabled

I’m using the tags fields in a way that users can only select tags previously created elsewhere. Like this:

  type: tags
  accept: options
  options: query
    fetch: page('people').roletags.split

This effectively fetches the tags from another page and blocks the users ability to create new tags on the fly, which is great for what I want.

The only problem is the “Add” button at the top and the “Create” button that appears when you filter continue to be there. They don’t have any effect but for the user it’s confusing to have them there.

Screenshot 2023-10-03 at 11.06.15

Screenshot 2023-10-03 at 11.15.48

Not sure if this issue is exclusive of K4, but that’s the version I’m using.

Please report an issue on GitHub if it hasn’t been reported yet.

I’d recommend using the new syntax for options, even if the old still works:

Thanks, @texnixe!

I’ve reported the bug on Github.

I’ve updated the syntax, thanks. The documentation still includes the old syntax in other parts of the page you linked though.