fix tabs in NextJS (#141)

This commit is contained in:
Konnor Rogers
2024-06-21 14:07:30 -04:00
committed by GitHub
parent 0be8efdc25
commit 18de476ebd
2 changed files with 7 additions and 3 deletions

4
package-lock.json generated
View File

@@ -1,11 +1,11 @@
{
"name": "@shoelace-style/shoelace",
"name": "@shoelace-style/webawesome",
"version": "3.0.0-alpha.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@shoelace-style/shoelace",
"name": "@shoelace-style/webawesome",
"version": "3.0.0-alpha.2",
"license": "MIT",
"dependencies": {

View File

@@ -41,7 +41,11 @@ export default class WaTab extends WebAwesomeElement {
/** Disables the tab and prevents selection. */
@property({ type: Boolean, reflect: true }) disabled = false;
tabIndex = 0;
/**
* @internal
* Need to wrap in a `@property()` otherwise NextJS blows up.
*/
@property({ type: Number, reflect: true }) tabIndex = 0;
connectedCallback() {
super.connectedCallback();