Skip to content

Using an icon font displays unexpected results #358

@benlevydesign

Description

@benlevydesign

Version of Dropkick:

2.1.7

Expected Behavior

DropKick should work as expected and display the selected option that I'm pulling from my mysql database with <?php echo $vendcat ?> which would have <i class="material-icons">&#xEB47;</i> as one of the results and would output it like: ic_kitchen_black_24dp_1x

I've used DropKick before with just text only options and pulling them with my php/mysql databases. As expected, anywhere else I use the <?php echo $vendcat ?> php code to display the mysql result, I get what I want: ic_kitchen_black_24dp_1x or one of the 2 other choices from the icon font I'm using. You can see it working here (look on the right side after each vendors name).

Actual Behavior

I'm using DropKick and getting the selected option from my mysql database and it works as expected but I'm using an icon font and when using the icons in the select options I just get a small black outlined box like this: 

Here is my test webpage

Here is my DropKick test with select options that use an icon font icon as part of the option text
Look for the "vendor type" DropKick (the form element after "vendor name")

Any help or ideas would be greatly appreciated. I would love to use the select element with DropKick for this form element.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions