Skip to content

Commit

Permalink
v1.11.2 (#540)
Browse files Browse the repository at this point in the history
* fix: UiToggleButton modelValue typing error (NOTICKET) (#539)

Co-authored-by: Alan Leszczuk <[email protected]>

* v1.11.2

---------

Co-authored-by: Alan <[email protected]>
Co-authored-by: Alan Leszczuk <[email protected]>
  • Loading branch information
3 people authored Jan 15, 2025
1 parent c595cd4 commit 76bd545
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docs/releases/v1.11.x/v1.11.2/changelog.stories.mdx.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Meta } from '@storybook/blocks';

<Meta title="Releases/v1.11.x/v1.11.2/Changelog"/>

# 1.11.2 (January 15, 2025)

## 🐛 Fixes
* UiToggleButton modelValue typing error (NOTICKET) ([#539](https://github.com/infermedica/component-library/pull/539))

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@infermedica/component-library",
"version": "1.11.1",
"version": "1.11.2",
"description": "Vue 3 UI library for healthcare and not only.",
"license": "MIT",
"sideEffects": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ if (!parentComponent || parentComponent.type.name !== 'UiToggleButtonGroup') {
throw new Error('UiToggleButton has to be child of UiToggleButtonGroup');
}
}
const modelValue = inject<WritableComputedRef<ToggleButtonGroupProps['modelValue']>>('modelValue', computed(() => ''));
const modelValue = inject<WritableComputedRef<ToggleButtonGroupProps['modelValue']>>(
'modelValue',
computed({
get: () => '',
set: (value) => value,
}),
);
const isChecked = computed(() => (modelValue && equal(modelValue.value, props.value)));
const clickHandler = () => {
modelValue.value = props.value;
Expand Down

0 comments on commit 76bd545

Please sign in to comment.