{
btn.focus()
if (!opened) {
opened = true
showPopup(UsersPopup, { _class, title, caption }, container, (result) => {
if (result) {
value = result._id
dispatch('change', value)
}
opened = false
})
}
}}
>
{#if selected}{formatName(selected.name)}{:else}{/if}