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
|
||||
|
||||
| Slot name | Default | Props | Fallback |
|
||||
| :-------- | :------ | :---- | :------- |
|
||||
| -- | Yes | -- | -- |
|
||||
| Slot name | Default | Props | Fallback |
|
||||
| :-------- | :------ | :---- | :------------------ |
|
||||
| -- | Yes | -- | -- |
|
||||
| cancel | No | -- | <code>Cancel</code> |
|
||||
|
||||
### Events
|
||||
|
||||
|
|
|
@ -12541,7 +12541,15 @@
|
|||
"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": [],
|
||||
"typedefs": [],
|
||||
"rest_props": { "type": "Element", "name": "div" }
|
||||
|
|
|
@ -309,6 +309,7 @@
|
|||
{/if}
|
||||
<ListBoxMenuIcon
|
||||
on:click="{(e) => {
|
||||
if (disabled) return;
|
||||
e.stopPropagation();
|
||||
open = !open;
|
||||
}}"
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
tabindex="{showActions ? '0' : '-1'}"
|
||||
on:click="{ctx.resetSelectedRowIds}"
|
||||
>
|
||||
Cancel
|
||||
<slot name="cancel">Cancel</slot>
|
||||
</Button>
|
||||
</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<
|
||||
ToolbarBatchActionsProps,
|
||||
{},
|
||||
{ default: {} }
|
||||
{ default: {}; cancel: {} }
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue