mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Fixes (#814)
* fix(combo-box): clicking chevron should not open the combo box if disabled Fixes #776 * fix(toolbar-batch-actions): cancel text should be slottable Fixes #782
This commit is contained in:
parent
36efee358f
commit
e4e75e5859
5 changed files with 16 additions and 6 deletions
|
@ -4532,9 +4532,10 @@ None.
|
||||||
|
|
||||||
### Slots
|
### Slots
|
||||||
|
|
||||||
| Slot name | Default | Props | Fallback |
|
| Slot name | Default | Props | Fallback |
|
||||||
| :-------- | :------ | :---- | :------- |
|
| :-------- | :------ | :---- | :------------------ |
|
||||||
| -- | Yes | -- | -- |
|
| -- | Yes | -- | -- |
|
||||||
|
| cancel | No | -- | <code>Cancel</code> |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
|
|
|
@ -12541,7 +12541,15 @@
|
||||||
"reactive": false
|
"reactive": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
|
"slots": [
|
||||||
|
{ "name": "__default__", "default": true, "slot_props": "{}" },
|
||||||
|
{
|
||||||
|
"name": "cancel",
|
||||||
|
"default": false,
|
||||||
|
"fallback": "Cancel",
|
||||||
|
"slot_props": "{}"
|
||||||
|
}
|
||||||
|
],
|
||||||
"events": [],
|
"events": [],
|
||||||
"typedefs": [],
|
"typedefs": [],
|
||||||
"rest_props": { "type": "Element", "name": "div" }
|
"rest_props": { "type": "Element", "name": "div" }
|
||||||
|
|
|
@ -309,6 +309,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
<ListBoxMenuIcon
|
<ListBoxMenuIcon
|
||||||
on:click="{(e) => {
|
on:click="{(e) => {
|
||||||
|
if (disabled) return;
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
open = !open;
|
open = !open;
|
||||||
}}"
|
}}"
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
tabindex="{showActions ? '0' : '-1'}"
|
tabindex="{showActions ? '0' : '-1'}"
|
||||||
on:click="{ctx.resetSelectedRowIds}"
|
on:click="{ctx.resetSelectedRowIds}"
|
||||||
>
|
>
|
||||||
Cancel
|
<slot name="cancel">Cancel</slot>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
2
types/DataTable/ToolbarBatchActions.d.ts
vendored
2
types/DataTable/ToolbarBatchActions.d.ts
vendored
|
@ -13,5 +13,5 @@ export interface ToolbarBatchActionsProps
|
||||||
export default class ToolbarBatchActions extends SvelteComponentTyped<
|
export default class ToolbarBatchActions extends SvelteComponentTyped<
|
||||||
ToolbarBatchActionsProps,
|
ToolbarBatchActionsProps,
|
||||||
{},
|
{},
|
||||||
{ default: {} }
|
{ default: {}; cancel: {} }
|
||||||
> {}
|
> {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue