diff --git a/app/javascript/flavours/glitch/features/drawer/header/index.js b/app/javascript/flavours/glitch/features/drawer/header/index.js
index 6949cd0283..deec424358 100644
--- a/app/javascript/flavours/glitch/features/drawer/header/index.js
+++ b/app/javascript/flavours/glitch/features/drawer/header/index.js
@@ -96,9 +96,8 @@ export default function DrawerHeader ({
({
});
// Dispatch mapping.
-const mapDispatchToProps = {
- onChange: changeSearch,
- onClear: clearSearch,
- onClickElefriend: cycleElefriendCompose,
- onShow: showSearch,
- onSubmit: submitSearch,
- onOpenSettings: openModal.bind(null, 'SETTINGS', {}),
-};
+const mapDispatchToProps = (dispatch, { intl }) => ({
+ onChange (value) {
+ dispatch(changeSearch(value));
+ },
+ onClear () {
+ dispatch(clearSearch());
+ },
+ onClickElefriend () {
+ dispatch(cycleElefriendCompose());
+ },
+ onShow () {
+ dispatch(showSearch());
+ },
+ onSubmit () {
+ dispatch(submitSearch());
+ },
+ onOpenSettings (e) {
+ e.preventDefault();
+ e.stopPropagation();
+ dispatch(openModal('SETTINGS', {}));
+ },
+});
// The component.
class Drawer extends React.Component {