verbb / icon-picker

A Craft CMS field to select SVG or font icons from a folder for use in your content.
Other
17 stars 8 forks source link

Required state not honoured on Icon Picker field #56

Open ghost opened 2 years ago

ghost commented 2 years ago

Describe the bug

I have set an Icon Picker field to be required. However, when an entry containing this field is saved without an icon having been selected, the required aspect is not honoured and no error is presented to the CMS user.

image

image

Steps to reproduce

  1. Create an Icon Picker field and assign to entry
  2. Save entry with no icon selected in the Icon Picker field

Craft CMS version

3.7.44

Plugin version

1.1.13

Multi-site?

No

Additional context

We also have the Neo plugin installed and is used as a content builder.

engram-design commented 2 years ago

Should be fixed in 1.1.14

Jkhvatova commented 16 hours ago

Hello! Faced this issue again in Craft Pro 5.3.6, Icon picker version 3.0.1. Is there any solutions for this? Thank you very much in advance for an answer!

engram-design commented 16 hours ago

Looks like a regression on that. Fixed for the next release. To get this early, run composer require verbb/icon-picker:"dev-craft-5 as 3.0.1".