CodeWringer / strive-foundryVTT

STRIVE system for FoundryVTT
GNU General Public License v3.0
1 stars 0 forks source link

Chat messages don't register click events #42

Closed CodeWringer closed 2 years ago

CodeWringer commented 2 years ago

In order to solve this one, chat messages each need to be assigned a view model and its activateListeners must be invoked. On that view model, a view model collection may be necessary, in order to be able to register buttons and input components.

The difficulty lies in re-instantiating the view models as necessary (for example, after a page re-load), because at that point the existing view models are purged and the data originally used to create them is no longer easily accessible.