Make it so that item sheet rerenders maintain focus on what you were editing

This commit is contained in:
Oliver-Akins 2025-01-17 19:52:46 -07:00
parent db5dfc3234
commit afc8278ffc
6 changed files with 16 additions and 13 deletions

View file

@ -1,10 +1,8 @@
import { localizer } from "../../utils/Localizer.mjs";
const { randomID } = foundry.utils;
export function numberInput(input, data) {
const label = localizer(input.label);
const id = `${data.meta.idp}-${randomID(10)}`;
const id = `${data.meta.idp}-${input.id}`;
if (!data.meta.editable) {
return `<div data-input-type="integer">