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

@ -1663,12 +1663,12 @@ None.
### Props
| 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 |
| href | <code>let</code> | No | <code>string</code> | -- | Specify the `href` attribute |
| text | <code>let</code> | No | <code>string</code> | -- | Specify the text |
| isSelected | <code>let</code> | No | -- | -- | Set to `true` to select the item |
| 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 |
| href | <code>let</code> | No | <code>string</code> | -- | Specify the `href` attribute |
| text | <code>let</code> | No | <code>string</code> | -- | Specify the text |
| isSelected | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to select the item |
### Slots

View file

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

View file

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

View file

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