Not a bug Incorrect checked icon state

Affected version
XF Latest


Formerly Nobita.Kun
I have used the follow code block. With the default is_staff value false. But when i check the frontend page it's show checked state.
    <xf:option name="is_staff" checked="{$memberRole.is_staff}">{{ phrase('tl_groups_display_as_staff') }}</xf:option>

Screen Shot 2017-10-29 at 10.11.25 PM.png

Chris D

XenForo developer
Staff member
The checked attribute in the HTML5 spec is a boolean property. If it exists, it's true. It's false if it doesn't exist.

You should be using the selected attribute in XF template syntax to evaluate conditions which will add the checked attribute only if the condition evaluates to true.