mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Select: Portal menu by default (#48176)
* Remove menuShouldPortal from all <Select /> components * fix unit tests * leave menuShouldPortal as an escape hatch * Fix import order
This commit is contained in:
@@ -236,7 +236,6 @@ export class ConfigEditor extends PureComponent<Props, State> {
|
||||
</InlineFormLabel>
|
||||
<Select
|
||||
inputId={`${htmlPrefix}-http-method`}
|
||||
menuShouldPortal
|
||||
className="width-10"
|
||||
value={httpModes.find((httpMode) => httpMode.value === options.jsonData.httpMode)}
|
||||
options={httpModes}
|
||||
@@ -280,7 +279,6 @@ export class ConfigEditor extends PureComponent<Props, State> {
|
||||
<div className="gf-form">
|
||||
<Select
|
||||
aria-label="Query language"
|
||||
menuShouldPortal
|
||||
className="width-30"
|
||||
value={options.jsonData.version === InfluxVersion.Flux ? versions[1] : versions[0]}
|
||||
options={versions}
|
||||
|
||||
@@ -51,7 +51,6 @@ export const RawInfluxQLEditor = ({ query, onChange, onRunQuery }: Props): JSX.E
|
||||
<HorizontalGroup>
|
||||
<InlineFormLabel htmlFor={selectElementId}>Format as</InlineFormLabel>
|
||||
<Select
|
||||
menuShouldPortal
|
||||
inputId={selectElementId}
|
||||
onChange={(v) => {
|
||||
onChange({ ...query, resultFormat: v.value });
|
||||
|
||||
@@ -78,7 +78,6 @@ const SelReload = ({ loadOptions, allowCustomValue, onChange, onClose }: SelRelo
|
||||
return (
|
||||
<div className={selectClass}>
|
||||
<AsyncSelect
|
||||
menuShouldPortal
|
||||
formatCreateLabel={formatCreateLabel}
|
||||
defaultOptions
|
||||
autoFocus
|
||||
@@ -109,7 +108,6 @@ const SelSingleLoad = ({ loadOptions, allowCustomValue, onChange, onClose }: Sel
|
||||
return (
|
||||
<div className={selectClass}>
|
||||
<Select
|
||||
menuShouldPortal
|
||||
isLoading={loadState.loading}
|
||||
formatCreateLabel={formatCreateLabel}
|
||||
autoFocus
|
||||
|
||||
@@ -26,7 +26,6 @@ exports[`Render should disable basic auth password input 1`] = `
|
||||
"value": "InfluxQL",
|
||||
}
|
||||
}
|
||||
menuShouldPortal={true}
|
||||
onChange={[Function]}
|
||||
options={
|
||||
Array [
|
||||
@@ -198,7 +197,6 @@ exports[`Render should disable basic auth password input 1`] = `
|
||||
className="width-10"
|
||||
defaultValue="POST"
|
||||
inputId="influxdb-config42-http-method"
|
||||
menuShouldPortal={true}
|
||||
onChange={[Function]}
|
||||
options={
|
||||
Array [
|
||||
@@ -293,7 +291,6 @@ exports[`Render should hide basic auth fields when switch off 1`] = `
|
||||
"value": "InfluxQL",
|
||||
}
|
||||
}
|
||||
menuShouldPortal={true}
|
||||
onChange={[Function]}
|
||||
options={
|
||||
Array [
|
||||
@@ -465,7 +462,6 @@ exports[`Render should hide basic auth fields when switch off 1`] = `
|
||||
className="width-10"
|
||||
defaultValue="POST"
|
||||
inputId="influxdb-config42-http-method"
|
||||
menuShouldPortal={true}
|
||||
onChange={[Function]}
|
||||
options={
|
||||
Array [
|
||||
@@ -560,7 +556,6 @@ exports[`Render should hide white listed cookies input when browser access chose
|
||||
"value": "InfluxQL",
|
||||
}
|
||||
}
|
||||
menuShouldPortal={true}
|
||||
onChange={[Function]}
|
||||
options={
|
||||
Array [
|
||||
@@ -732,7 +727,6 @@ exports[`Render should hide white listed cookies input when browser access chose
|
||||
className="width-10"
|
||||
defaultValue="POST"
|
||||
inputId="influxdb-config42-http-method"
|
||||
menuShouldPortal={true}
|
||||
onChange={[Function]}
|
||||
options={
|
||||
Array [
|
||||
@@ -827,7 +821,6 @@ exports[`Render should render component 1`] = `
|
||||
"value": "InfluxQL",
|
||||
}
|
||||
}
|
||||
menuShouldPortal={true}
|
||||
onChange={[Function]}
|
||||
options={
|
||||
Array [
|
||||
@@ -999,7 +992,6 @@ exports[`Render should render component 1`] = `
|
||||
className="width-10"
|
||||
defaultValue="POST"
|
||||
inputId="influxdb-config42-http-method"
|
||||
menuShouldPortal={true}
|
||||
onChange={[Function]}
|
||||
options={
|
||||
Array [
|
||||
|
||||
Reference in New Issue
Block a user