Skip to content
Merged
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Added `Enter` key press functionality to `EuiSuperDatePicker` ([#3048](https://github.com/elastic/eui/pull/3048))
- Added props descriptions for `EuiComboBox` ([#3007](https://github.com/elastic/eui/pull/3007))
- Exported `dateFormatAliases` as a part of the public API ([#3043](https://github.com/elastic/eui/pull/3043))
- Exported `EuiTextProps` type definition ([#3039](https://github.com/elastic/eui/pull/3039))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`EuiSuperDatePicker is rendered 1`] = `
<EuiFlexGroup
className="euiSuperDatePicker__flexWrapper"
gutterSize="s"
onKeyPress={[Function]}
Comment thread
anishagg17 marked this conversation as resolved.
Outdated
responsive={false}
>
<EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export class EuiQuickSelect extends Component {
});
};

handelKeyDown = ({ key }) => {
Comment thread
anishagg17 marked this conversation as resolved.
Outdated
if (key === 'Enter') this.applyQuickSelect();
};

applyQuickSelect = () => {
const { timeTense, timeValue, timeUnits } = this.state;

Expand Down Expand Up @@ -122,7 +126,7 @@ export class EuiQuickSelect extends Component {
const legendId = this.generateId();

return (
<fieldset>
<div onKeyDown={this.handelKeyDown}>
Comment thread
chandlerprall marked this conversation as resolved.
Outdated
<EuiI18n
token="euiQuickSelect.legendText"
default="Quick select a time range">
Expand Down Expand Up @@ -257,7 +261,7 @@ export class EuiQuickSelect extends Component {
/>
</p>
</EuiScreenReaderOnly>
</fieldset>
</div>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export class EuiRefreshInterval extends Component {
);
};

handelKeyDown = ({ key }) => {
Comment thread
anishagg17 marked this conversation as resolved.
Outdated
if (key === 'Enter') this.toogleRefresh();
Comment thread
anishagg17 marked this conversation as resolved.
Outdated
};

applyRefreshInterval = () => {
if (this.state.value === '') {
return;
Expand Down Expand Up @@ -123,7 +127,7 @@ export class EuiRefreshInterval extends Component {
}

return (
<fieldset>
<div onKeyDown={this.handelKeyDown}>
Comment thread
anishagg17 marked this conversation as resolved.
Outdated
<EuiTitle size="xxxs">
<legend id={legendId}>
<EuiI18n
Expand Down Expand Up @@ -186,7 +190,7 @@ export class EuiRefreshInterval extends Component {
/>
</p>
</EuiScreenReaderOnly>
</fieldset>
</div>
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ export class EuiSuperDatePicker extends Component {
{this.renderDatePickerRange()}
</EuiFormControlLayout>
</EuiFlexItem>

{this.renderUpdateButton()}
</EuiFlexGroup>
);
Expand Down