]> cat aescling's git repositories - mastodon.git/commitdiff
fix: initial state of PrivacyDropdown is should not be null (#9008)
authortakayamaki <fsgiko@gmail.com>
Thu, 18 Oct 2018 22:00:19 +0000 (07:00 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 18 Oct 2018 22:00:19 +0000 (00:00 +0200)
app/javascript/mastodon/features/compose/components/privacy_dropdown.js

index 7b5482f05bc385951943f6cf52d9e610aea76510..5698765d94f2b55e54ac9f328f2df6f08235c3dd 100644 (file)
@@ -164,7 +164,7 @@ class PrivacyDropdown extends React.PureComponent {
 
   state = {
     open: false,
-    placement: null,
+    placement: 'bottom',
   };
 
   handleToggle = ({ target }) => {