Setting smart select parameter

Im trying to get a smart select to close on select by using the closeOnSelect parameter. Was hoping i could just pass this in with the data- attribute on the element? This dosen’t work. Am i not able to do it this way?

class=“item-link smart-select smart-select-init” data-closeOnSelect=“true”

Should be:

1 Like

Can you please add these type of things to the docs?