Browse Source

Fix issue with toggle in mobile

pull/5/head
Renato "Lond" Cerqueira 8 years ago
parent
commit
9d6e005849
  1. 2
      app/javascript/mastodon/features/compose/components/federation_dropdown.js

2
app/javascript/mastodon/features/compose/components/federation_dropdown.js

@ -182,7 +182,7 @@ export default class FederationDropdown extends React.PureComponent {
handleModalActionClick = (e) => {
e.preventDefault();
const { value } = this.options[Boolean(e.currentTarget.getAttribute('data-index'))];
const { value } = this.options[e.currentTarget.getAttribute('data-index')];
this.props.onModalClose();
this.props.onChange(value);

Loading…
Cancel
Save