Skip to content

Commit

Permalink
do not limit dropdown menu width
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder544 committed Nov 26, 2024
1 parent 14193de commit a508918
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bundles/framework/publisher2/view/form/GeneralInfoForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react';
import { LabeledInput, Select, Option, Message, Label } from 'oskari-ui';
import styled from 'styled-components';
import { InfoIcon } from 'oskari-ui/components/icons';

import { PropTypes } from 'prop-types';
const FieldWithInfo = styled('div')`
display: flex;
flex-direction: row;
Expand All @@ -13,12 +13,11 @@ const FieldWithInfo = styled('div')`
const BUNDLE_KEY = 'Publisher2';

export const GeneralInfoForm = ({ onChange, data }) => {

const [state, setState] = useState({
name: data.name.value ? data.name.value : null,
domain: data.domain.value ? data.domain.value : null,
language: data.language.value ? data.language.value : Oskari.getLang()
})
});

const languages = Oskari.getSupportedLanguages();

Expand Down Expand Up @@ -73,6 +72,7 @@ export const GeneralInfoForm = ({ onChange, data }) => {
});
onChange('language', lang);
}}
popupMatchSelectWidth={false}
>
{languages.map(lang => (
<Option value={lang} key={lang}>
Expand All @@ -85,3 +85,8 @@ export const GeneralInfoForm = ({ onChange, data }) => {
</div>
);
};

GeneralInfoForm.propTypes = {
onChange: PropTypes.func,
data: PropTypes.obj
};

0 comments on commit a508918

Please sign in to comment.