Browse Source

Merge branch 'master' into feat/3176-grid-edit-modal-for-master-merge

itizawa 5 years ago
parent
commit
d1a76af154
2 changed files with 3 additions and 2 deletions
  1. 1 0
      CHANGES.md
  2. 2 2
      src/client/js/components/Page/CopyDropdown.jsx

+ 1 - 0
CHANGES.md

@@ -9,6 +9,7 @@
 
 
 ### Updates
 ### Updates
 
 
+* Feature: File Upload Settings on admin pages
 * Improvement: Basic layout of page
 * Improvement: Basic layout of page
 * Support: Support MongoDB 4.0, 4.2 and 4.4
 * Support: Support MongoDB 4.0, 4.2 and 4.4
 * Support: Upgrade libs
 * Support: Upgrade libs

+ 2 - 2
src/client/js/components/Page/CopyDropdown.jsx

@@ -41,7 +41,7 @@ const CopyDropdown = (props) => {
    * functions to construct labels and URLs
    * functions to construct labels and URLs
    */
    */
   const getUriParams = useCallback(() => {
   const getUriParams = useCallback(() => {
-    if (!isParamsAppended) {
+    if (!isParamsAppended || !dropdownOpen) {
       return '';
       return '';
     }
     }
 
 
@@ -50,7 +50,7 @@ const CopyDropdown = (props) => {
     } = window.location;
     } = window.location;
 
 
     return `${search}${hash}`;
     return `${search}${hash}`;
-  }, [isParamsAppended]);
+  }, [isParamsAppended, dropdownOpen]);
 
 
   const pagePathWithParams = useMemo(() => {
   const pagePathWithParams = useMemo(() => {
     const { pagePath } = props;
     const { pagePath } = props;