LOE
League of Extraordinary FoundryVTT DevelopersmartinAbsolute
Avoid Sheet Re-render When Editing Actor's Item
TL;DR How do I avoid a re-render of a character sheet with actor.items displayed, that happens when item.update is called?
I have a simple on event handler on my character sheet like this:
with a supporting template (a partial of the character sheet that displays all the items in a table) like so:
and of course an event handler tied in
activateListeners
(with super.activateListeners(html)
):
I'm trying to avoid a re-render that happens when item.update
is called in my character sheet class code. It's bothersome because I would like the fields to be tab-targetable (clicking tab switches user-input to the next input in line), however that focus is lost due to the re-render.Z
Zhell•106d ago
this will also cause the item sheet to not re-render, however.
M
martinAbsolute•106d ago
@Zhell Yep that did it, thank you v much!
LTL
Leo The League Lion•106d ago
@martinAbsolute gave LeaguePoints™ to @Zhell (#44 • 64)
Want results from more Discord servers?
More PostsHow to Create & Save Custom Field Values from a Dropdown on Actor sheet?I am building a custom system for a Hogwarts setting using the Wands & Wizards 5e supplement. I am cFinding target when making an attackI’m developing a game system, and can’t figure it out, when there is combat active and a player is tTrying to register a new systemHey everyone, I am new to Foundry system development. I am working with the boilerplate system and hMinimise Document using PrototypeQuick question, I've got no idea what I'm doing so please excuse my ineptitude.
Say I have a documenNew to System Development but have done minor module developmentI am trying to see if there is a complete working model of a system that I could use a base to undercalculating range/distanceI am trying to calculate the distance between two tokens to make sure they are in range of one anothPartial RerollI am looking for a way to partially "reroll" a roll.
Quick example: Player rolls 2d6 (a 2 and a 5) atiered status effectsIf I have a status effect that can come from an ability, for example, burning comes from an ability