Skip to content

Commit

Permalink
SHARED:AKR:OTR:VKT:YKI(Frontend): Fix native select component [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Oct 7, 2024
1 parent edf928b commit 9a15041
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion frontend/packages/akr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"akr:tslint": "yarn g:tsc --pretty --noEmit"
},
"dependencies": {
"shared": "npm:@opetushallitus/[email protected].3"
"shared": "npm:@opetushallitus/[email protected].4"
}
}
2 changes: 1 addition & 1 deletion frontend/packages/otr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"otr:tslint": "yarn g:tsc --pretty --noEmit"
},
"dependencies": {
"shared": "npm:@opetushallitus/[email protected].3"
"shared": "npm:@opetushallitus/[email protected].4"
}
}
5 changes: 5 additions & 0 deletions frontend/packages/shared/CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Released]

## [1.11.4] - 2024-10-07

### Fixed
- Fixed bug introduced in v.1.11.1: NativeSelect and NativeSelectWithLabel didn't display chosen value correctly

## [1.11.3] - 2024-09-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opetushallitus/kieli-ja-kaantajatutkinnot.shared",
"version": "1.11.3",
"version": "1.11.4",
"description": "Shared Frontend Package",
"exports": {
"./components": "./src/components/index.tsx",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ComboBoxOption } from '../../interfaces';
import { Text } from '../Text/Text';

export interface CustomNativeSelectProps
extends BaseSelectProps<ComboBoxOption> {
extends Omit<BaseSelectProps<string>, 'value'> {
'data-testid'?: string;
helperText?: string;
showError?: boolean;
Expand All @@ -27,7 +27,7 @@ const CustomSelect = ({
...rest
}: CustomNativeSelectProps) => {
const options = [{ label: placeholder, value: '' }, ...values];
const inputValue = value && value.value ? value : '';
const inputValue = value && value.value ? value.value : '';

return (
<Select variant={Variant.Outlined} value={inputValue} {...rest} native>
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/vkt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
},
"dependencies": {
"reduxjs-toolkit-persist": "^7.2.1",
"shared": "npm:@opetushallitus/[email protected].3"
"shared": "npm:@opetushallitus/[email protected].4"
}
}
2 changes: 1 addition & 1 deletion frontend/packages/yki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"yki:tslint": "yarn g:tsc --pretty --noEmit"
},
"dependencies": {
"shared": "npm:@opetushallitus/[email protected].3"
"shared": "npm:@opetushallitus/[email protected].4"
},
"devDependencies": {
"multer": "^1.4.5-lts.1"
Expand Down
10 changes: 5 additions & 5 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2588,15 +2588,15 @@ __metadata:
version: 0.0.0-use.local
resolution: "@opetushallitus/kieli-ja-kaantajatutkinnot.akr@workspace:packages/akr"
dependencies:
shared: "npm:@opetushallitus/[email protected].3"
shared: "npm:@opetushallitus/[email protected].4"
languageName: unknown
linkType: soft

"@opetushallitus/kieli-ja-kaantajatutkinnot.otr@workspace:packages/otr":
version: 0.0.0-use.local
resolution: "@opetushallitus/kieli-ja-kaantajatutkinnot.otr@workspace:packages/otr"
dependencies:
shared: "npm:@opetushallitus/[email protected].3"
shared: "npm:@opetushallitus/[email protected].4"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -2689,7 +2689,7 @@ __metadata:
languageName: unknown
linkType: soft

"@opetushallitus/kieli-ja-kaantajatutkinnot.shared@workspace:packages/shared, shared@npm:@opetushallitus/[email protected].3":
"@opetushallitus/kieli-ja-kaantajatutkinnot.shared@workspace:packages/shared, shared@npm:@opetushallitus/[email protected].4":
version: 0.0.0-use.local
resolution: "@opetushallitus/kieli-ja-kaantajatutkinnot.shared@workspace:packages/shared"
languageName: unknown
Expand All @@ -2700,7 +2700,7 @@ __metadata:
resolution: "@opetushallitus/kieli-ja-kaantajatutkinnot.vkt@workspace:packages/vkt"
dependencies:
reduxjs-toolkit-persist: "npm:^7.2.1"
shared: "npm:@opetushallitus/[email protected].3"
shared: "npm:@opetushallitus/[email protected].4"
languageName: unknown
linkType: soft

Expand All @@ -2709,7 +2709,7 @@ __metadata:
resolution: "@opetushallitus/kieli-ja-kaantajatutkinnot.yki@workspace:packages/yki"
dependencies:
multer: "npm:^1.4.5-lts.1"
shared: "npm:@opetushallitus/[email protected].3"
shared: "npm:@opetushallitus/[email protected].4"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 9a15041

Please sign in to comment.