Hi,
we are currently trying to add Atlaskit to our Serverapp lineup. We have the problem, that the onChange method for the select field is not firing at all, whereas other onChange (radio button) fires.
// Not firing
<Field name="select-field-test"
label="Select Field Test"
>
{({ fieldProps }: any) => (
<React.Fragment>
<Select className="single-select"
classNamePrefix="react-select"
placeholder="Please select a value"
onChange={() => console.log("foo")}
options={[
{ label: "A", value: "a" },
{ label: "B", value: "b" },
{ label: "C", value: "c" },
]}
{...fieldProps}
/>
</React.Fragment>
)}
</Field>
// works
<Field name="radio">
{({ fieldProps }: any) => (
<React.Fragment>
<RadioGroup
options={radioItems}
{...fieldProps}
onChange={(val: Object, action: Object) => { console.log(val) }}
/>
</React.Fragment>
)}
</Field>
We are using the following packages:
"styled-components": "^3.2.6"
"@atlaskit/form": "^8.1.0",
"@atlaskit/select": "^13.0.4",
Can anyone help me with this?
Best regards,
Alex