Make it so that the custom input delegates focus
This commit is contained in:
parent
d433e6a51d
commit
5b5e74e085
2 changed files with 7 additions and 3 deletions
|
|
@ -14,7 +14,11 @@ Styling:
|
|||
- `--height`: Controls the height of the element + the width of the buttons (default: 1.25rem)
|
||||
- `--width`: Controls the width of the number input (default 50px)
|
||||
*/
|
||||
export class DotDungeonIncrementer extends StyledShadowElement(HTMLElement) {
|
||||
export class DotDungeonIncrementer
|
||||
extends StyledShadowElement(
|
||||
HTMLElement,
|
||||
{ mode: `open`, delegatesFocus: true }
|
||||
) {
|
||||
static elementName = `dd-incrementer`;
|
||||
static formAssociated = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue