mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
FEAT: delete unused item sheet
FEAT: add todo comment on subclass sheet FIX: add minor comment on feature sheet FIX: tagify class FEAT: inprovement throw error on create tagify element
This commit is contained in:
parent
1804070764
commit
f63e94b4cc
5 changed files with 30 additions and 139 deletions
|
|
@ -97,15 +97,13 @@ export default function DHApplicationMixin(Base) {
|
|||
|
||||
// Validate required fields
|
||||
if (!selector || !options || !callback) {
|
||||
console.warn('Invalid TagifyConfig - missing required properties', config);
|
||||
return;
|
||||
throw new Error('Invalid TagifyConfig - missing required properties', config);
|
||||
}
|
||||
|
||||
// Find target element
|
||||
const element = this.element.querySelector(selector);
|
||||
if (!element) {
|
||||
console.warn(`Element not found with selector: ${selector}`);
|
||||
return;
|
||||
throw new Error(`Element not found with selector: ${selector}`);
|
||||
}
|
||||
// Resolve dynamic options if function provided
|
||||
const resolvedOptions = typeof options === 'function' ? options.call(this) : options;
|
||||
|
|
@ -113,7 +111,7 @@ export default function DHApplicationMixin(Base) {
|
|||
// Initialize Tagify
|
||||
tagifyElement(element, resolvedOptions, callback.bind(this), tagifyOptions);
|
||||
} catch (error) {
|
||||
console.error('Error initializing Tagify:', error, config);
|
||||
console.error('Error initializing Tagify:', error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -141,7 +139,7 @@ export default function DHApplicationMixin(Base) {
|
|||
* @param {DragEvent} event
|
||||
* @protected
|
||||
*/
|
||||
_onDrop(event) {}
|
||||
_onDrop(event) { }
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Prepare Context */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue