Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Why does changing the compendium-drop-target from “monsters” to “beasts” break drag-and-drop?

1748888902
MMPAPPS Corp.
Pro
Marketplace Creator
Sheet Author
Compendium Curator
I’m building a custom character sheet with drag-and-drop support for a compendium category. When I have a compendium category named "Monsters" and the corresponding HTML uses:     <div class="compendium-drop-target monsters"> …it works perfectly — I can drag a monster entry from the compendium, and it creates a character sheet as expected. However, in my game I don’t have “monsters”; I have creatures like wolves, bears, and horses, and it seems strange to have them in a Monsters category in the compendium. So I renamed the category to "Beasts" in the compendium, and updated the HTML to:     <div class="compendium-drop-target beasts"> Now, when I drag a beast from the compendium, it comes in as a handout instead of a character sheet. Is "monsters" a reserved keyword for the compendium-drop-target class? Is there any way to use a custom category like "beasts" and still get proper drag-and-drop behavior?
1748892438
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi MMPAPPS Corp! This is out of my wheelhouse, but you might get better attention and response by posting this in the Character Sheets sub-forum.