nystudio107 / generator-craftplugin

generator-craftplugin is a Yeoman generator for Craft CMS plugins
MIT License
74 stars 30 forks source link

Switchbutton Bug #107

Open cptcoolwine opened 3 years ago

cptcoolwine commented 3 years ago

Describe the bug

After accidentally closing the tab where i was filling out the plugin data, i quickly pressed CTRL + SHIFT + T to reopen the tab. Then something weird happened. All the switchbuttons that were switched on before i closed it were still on, but inside out. So basically its switched on, but its closed at the same time... so i also have to turn it off to turn it on.

To reproduce

1) Fill out some random data on https://pluginfactory.io/ 2) Switch on some of the options (especially the dropdown switchbuttons) 3) Close the tab you had it opened on 4) Press CTRL + SHIFT + T 5) All your filled in data should be back, except the switchbuttons are inside out. (you'll get what i mean when you see it)

Expected behaviour

When pressing the keybind, i expected to have my tab with the plugin data back, but instead this happened.

Screenshots

So your'e just filling out your plugin's data. afbeelding

Then you accidentally close the tab and quickly press CTRL + SHIFT + T with this result... afbeelding

Now i have to switch some of them off to switch them on, and the other way around... afbeelding

I hope this is enough information to show the bug for you to fix it.