diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0642403..fae6d263 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,14 +40,6 @@ jobs: with: node-version: 20 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: '1.22' - - - name: Install Yaak CLI - run: go install github.com/yaakapp/yaakcli@latest - - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: diff --git a/src-web/components/core/PlainInput.tsx b/src-web/components/core/PlainInput.tsx index 57355eb0..b263acee 100644 --- a/src-web/components/core/PlainInput.tsx +++ b/src-web/components/core/PlainInput.tsx @@ -59,9 +59,10 @@ export const PlainInput = forwardRef(function const isValid = useMemo(() => { if (require && !validateRequire(currentValue)) return false; - if (validate && !validate(currentValue)) return false; + if (typeof validate === 'boolean') return validate; + if (typeof validate === 'function' && !validate(currentValue)) return false; return true; - }, [currentValue, validate, require]); + }, [require, currentValue, validate]); const handleChange = useCallback( (value: string) => {