Make it so that item sheet rerenders maintain focus on what you were editing
This commit is contained in:
parent
db5dfc3234
commit
afc8278ffc
6 changed files with 16 additions and 13 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue