Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(mobile): property input field keyboard mode (#8982)

pengx17671885d510ee
diff --git a/packages/frontend/core/src/components/doc-properties/types/number.tsx b/packages/frontend/core/src/components/doc-properties/types/number.tsx
index d4ceee6d93..cd7b36c26d 100644
--- a/packages/frontend/core/src/components/doc-properties/types/number.tsx
+++ b/packages/frontend/core/src/components/doc-properties/types/number.tsx
@@ -38,7 +38,8 @@ const DesktopNumberValue = ({ value, onChange }: PropertyValueProps) => {
>
<input
className={styles.numberPropertyValueInput}
- type={'number'}
+ type="number"
+ inputMode="decimal"
value={tempValue || ''}
onChange={handleOnChange}
onBlur={handleBlur}
@@ -109,7 +110,8 @@ const MobileNumberValue = ({
>
<input
className={styles.mobileNumberPropertyValueInput}
- type={'number'}
+ type="number"
+ inputMode="decimal"
value={tempValue || ''}
onChange={handleOnChange}
onBlur={handleBlur}
diff --git a/packages/frontend/core/src/mobile/components/search-input/index.tsx b/packages/frontend/core/src/mobile/components/search-input/index.tsx
index 5ad91b7d5e..26ae7b8e66 100644
--- a/packages/frontend/core/src/mobile/components/search-input/index.tsx
+++ b/packages/frontend/core/src/mobile/components/search-input/index.tsx
@@ -102,6 +102,8 @@ export const SearchInput = forwardRef<HTMLInputElement, SearchInputProps>(
<input
ref={inputRef}
{...attrs}
+ type="search"
+ inputMode="search"
value={inputValue}
onInput={handleInput}
className={styles.input}