fix(ui-shell): default isSelected in HeaderNavItem to false

This commit is contained in:
Eric Y Liu 2021-06-26 14:09:42 -07:00
commit f3d4fe73cf
4 changed files with 11 additions and 8 deletions

View file

@ -1664,11 +1664,11 @@ None.
### Props ### Props
| Prop name | Kind | Reactive | Type | Default value | Description | | Prop name | Kind | Reactive | Type | Default value | Description |
| :--------- | :--------------- | :------- | :----------------------------------------- | ----------------- | --------------------------------------------- | | :--------- | :--------------- | :------- | :----------------------------------------- | ------------------ | --------------------------------------------- |
| ref | <code>let</code> | Yes | <code>null &#124; HTMLAnchorElement</code> | <code>null</code> | Obtain a reference to the HTML anchor element | | ref | <code>let</code> | Yes | <code>null &#124; HTMLAnchorElement</code> | <code>null</code> | Obtain a reference to the HTML anchor element |
| href | <code>let</code> | No | <code>string</code> | -- | Specify the `href` attribute | | href | <code>let</code> | No | <code>string</code> | -- | Specify the `href` attribute |
| text | <code>let</code> | No | <code>string</code> | -- | Specify the text | | text | <code>let</code> | No | <code>string</code> | -- | Specify the text |
| isSelected | <code>let</code> | No | -- | -- | Set to `true` to select the item | | isSelected | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to select the item |
### Slots ### Slots

View file

@ -4112,6 +4112,8 @@
"name": "isSelected", "name": "isSelected",
"kind": "let", "kind": "let",
"description": "Set to `true` to select the item", "description": "Set to `true` to select the item",
"type": "boolean",
"value": "false",
"isFunction": false, "isFunction": false,
"constant": false, "constant": false,
"reactive": false "reactive": false

View file

@ -12,7 +12,7 @@
export let text = undefined; export let text = undefined;
/** Set to `true` to select the item */ /** Set to `true` to select the item */
export let isSelected = undefined; export let isSelected = false;
/** Obtain a reference to the HTML anchor element */ /** Obtain a reference to the HTML anchor element */
export let ref = null; export let ref = null;

View file

@ -15,8 +15,9 @@ export interface HeaderNavItemProps
/** /**
* Set to `true` to select the item * Set to `true` to select the item
* @default false
*/ */
isSelected?: undefined; isSelected?: boolean;
/** /**
* Obtain a reference to the HTML anchor element * Obtain a reference to the HTML anchor element