Explorar el Código

change attributes to the correct ones

yohei0125 hace 4 años
padre
commit
c593759aa3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/app/src/components/SearchPage/SearchOptionModal.tsx

+ 2 - 2
packages/app/src/components/SearchPage/SearchOptionModal.tsx

@@ -49,7 +49,7 @@ const SearchOptionModal: FC<Props> = (props: Props) => {
               <input
                 className="mr-2"
                 type="checkbox"
-                onClick={props.onExcludeUserPagesSwitched}
+                onChange={props.onExcludeUserPagesSwitched}
                 checked={!excludeUserPages}
               />
               {t('Include Subordinated Target Page', { target: '/user' })}
@@ -60,7 +60,7 @@ const SearchOptionModal: FC<Props> = (props: Props) => {
               <input
                 className="mr-2"
                 type="checkbox"
-                onClick={props.onExcludeTrashPagesSwitched}
+                onChange={props.onExcludeTrashPagesSwitched}
                 checked={!excludeTrashPages}
               />
               {t('Include Subordinated Target Page', { target: '/trash' })}