Cannot delete the last item in a `list` in a theme
Author: artofthesmartCreated Sep 27, 2020Updated Jun 24, 2026
Labelsbug1.7
Looks like there's a glitch where the last item in a list theme setting cannot be deleted.
Steps to reproduce:
- Install Grav + Admin.
- Install the Hypertext theme, a bare-bones theme with a
listitem in the 3rd tab. Theme blueprint YAML file, see line 266. - Add a few off-site links. Save.
- Delete all but one link. Save.
- Delete the last link. Save.
Expected Behavior: The list will be saved as empty. Actual Behavior: The page refreshes and the last list item is still in the list.
What I've tried
- Double checked that the permissions on the
/user/config/themes/hypertext.yamlfile are correct and editable by the host user/group. No change. - Double checked that there are no "Default" links in the
hypertext.yamlfile that comes with the theme, that might be overwriting the emptiness with some default. Nothing there.
Source: getgrav/grav