Selected attribute to be supported in options tag

#1

Hello, community!

We’re refining some points of our plugin’s UI, and were wondering if it were possible to add support for selected attribute to be supported in the options tag.
This could allow us to set clearly default values for our dropdowns in our menus, minimising the number of clicks the user has to perform :slight_smile:

Thanks!

0 Likes

#2

Hi @Irina,

could selectedIndex do the trick?

0 Likes

#3

Hi @PaoloBiagini,
I’ve done that for now, just looks a little bit sloppy.

0 Likes

#4

I used it in one of my plugins without any problem.
:grinning:

0 Likes

#5

FYI, this has been fixed internally, so should be out in a couple of XD releases :slight_smile:

3 Likes

#6

This is fixed in XD 18 (the April release that just went live today). Be sure to set your plugin’s minVersion accordingly if you rely on this HTML feature.

1 Like

#7

Thank you!
We have some awesome plans for our plugins, so will update the code asap :slight_smile:

0 Likes