sdenec / tidy5e-sheet

An alternative Character Sheet for Foundry VTT dnd5e aimed at creating a cleaner UI.
86 stars 98 forks source link

[BUG] Currency total doesn't get updated on change when sheet it popped out #793

Open denis-kralj opened 10 months ago

denis-kralj commented 10 months ago

Module Version: v0.9.18

Description When the sheet is popped out in a separate window, any changes to the money totals doesn't get persisted in the sheet. Having the sheet within the main window doesn't present the same issue. The console output pasted below only shows up on the first update attempt, to get it again I need to refresh the browser tab and re pop out the sheet.

Console error reported

Uncaught (in promise) TypeError: field.dataset is undefined
[Detected 4 packages: system:dnd5e, tidy5e-sheet, lib-wrapper, plutonium]
    #getFieldValue foundry.js:67940
    #processFormFields foundry.js:67871
    process foundry.js:67803
    FormDataExtended foundry.js:67792
    _getSubmitData foundry.js:6593
    _getSubmitData foundry.js:71025
    _onSubmit foundry.js:6558
    _onChangeInput foundry.js:6618
    jQuery 8
    activateListeners foundry.js:6511
    activateListeners base-sheet.mjs:680
    activateListeners character-sheet.mjs:203
    activateListeners tidy5e-sheet.js:179
    _render foundry.js:5784
    _render foundry.js:6474
    call_wrapped libWrapper-wrapper.js:507
    _lw_ActorSheetOrItemSheet_prototype__render Bundle.js:118085
    call_wrapper libWrapper-wrapper.js:616
    _render#0 libWrapper-wrapper.js:189
    render foundry.js:5711
    render foundry.js:7053
    _onClickLeft2 foundry.js:56190
    callback foundry.js:31699
    #handleClickLeft2 foundry.js:31904
    #handleMouseDown foundry.js:31871
    notifyListeners earcut.js:128
    notifyTarget earcut.js:128
    propagate earcut.js:128
    dispatchEvent earcut.js:128
    mapPointerDown earcut.js:128
    mapEvent earcut.js:128
    onPointerDown earcut.js:128
foundry.js:67940:22

Browser: Firefox

Foundry Version: 11.313 Game System: dnd5e 2.3.1