Dolphiq / craft3-iconpicker

Craft plugin that provides a new field type that offers end users an easy way to pick an icon from a .woff or .ttf font file. You can easily use ionicons or font awesome icons or any other compatible font file.
MIT License
16 stars 11 forks source link

Does not display selection modal when marked as "required" #7

Closed Pilipo closed 5 years ago

Pilipo commented 6 years ago

I have built a simple matrix field type that contain two "plain text" fields and a single iconpicker. When I save everything and try to add the icon on the entry, the "pick an icon" button is unresponsive.

I tested this as an independent field (outside of a matrix) and everything worked as expected.

Any thoughts?

Pilipo commented 6 years ago

I juts realized that the issue is not the Matrix type. The actual issue is marking this iconpicker as required. When marked as required, the selection popup never triggers. I'm updating the issue title now to reflect this.

jeffaglenn commented 6 years ago

I'm getting what you had originally. Marking it required or not does not affect picking an icon. However if the field is within a Matrix the button is unresponsive. I don't seem to be getting any console errors either.

E2design commented 6 years ago

Same issue here. The button is visible but not responsive if placed within a matrix.

IconPicker 1.0.4 Craft Pro 3.0.11 PHP 7.1.12

ewhicher commented 6 years ago

Having a similar issue here, when the icon picker is within a matrix field it is not clickable until the page has been saved (or a save attempt has been triggered and the page is reloaded).

Any thoughts?

cms: v 3.0.13.1 iconpicker: v 1.0.4 php: v 7.1.12

jeffaglenn commented 6 years ago

Still haven't found a way around this. I'm thinking it may have something to do with the wrapping divs and when it's in the matrix field it doesn't have those divs/classes to look for. Just a guess?

Luuc15 commented 5 years ago

Has been fixed with latest release