Skip to content

Allow to delete an existing icon#11

Open
mariavilaro wants to merge 1 commit intochkilel:mainfrom
mariavilaro:fix-allow-delete-icon
Open

Allow to delete an existing icon#11
mariavilaro wants to merge 1 commit intochkilel:mainfrom
mariavilaro:fix-allow-delete-icon

Conversation

@mariavilaro
Copy link
Copy Markdown

This pull request fixes the problem reported in the forum https://octobercms.com/plugin/support/chkilel-icones/delete-existing-icon about being unable of deleting an existing icon

Correctly initializes the Select2 field with a pre-selected icon, including its SVG and formatted display text.
Adds explicit template rendering functions to improve consistent display for results and selections.
Implements a `select2:clear` event handler to allow users to deselect an icon, effectively clearing the input.
Improves HTML escaping for data injected into the JavaScript.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant