mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix tabs in NextJS (#141)
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -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": {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user