so I've got ```DialogV2.confirm(ConfirmOptions(con...
# javascript
b
so I've got
Copy code
DialogV2.confirm(ConfirmOptions(content="<b>hi</b>", submit = { Promise.resolve(Unit)}))
which uses the following JsPlainObject interface:
Copy code
@JsPlainObject
external interface ConfirmOptions : DialogV2WaitOptions, DialogV2Options {
    val yes: DialogV2Button?
    val no: DialogV2Button?
}
This compiles to
Copy code
var t = {
            rejectClose,
            tag,
            id,
            position,
            actions,
            uniqueId,
            form,
            classes,
            window,
            submit,
            content,
            modal,
            buttons,
            yes,
            no
        };
        return a.confirm(t)
which sets window to the global window object. window is a separate property on the interface which is entirely different from the global object. Also note how content is not assigned? What am I doing wrong? Another YouTrack ticket? sigh Got it, it breaks and produces that output if your plain object is inside a file using @file:JsQualifier https://youtrack.jetbrains.com/issue/KT-68904/JsPlainObject-breaks-when-inside-a-file-with-fileJsQualifier
gratitude thank you 2
1