mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 02:26:21 +08:00
5109ceccec
Close [BS-2917](https://linear.app/affine-design/issue/BS-2917/【移动端】ios-唤起键盘的edge-case) This PR fixes an issue where the keyboard cannot be re-triggered on iOS devices after the keyboard toolbar is hidden or executing some actions in keyboard toolbar. Key changes: - Preserve and restore the initial input mode when keyboard toolbar shows/hides - Improve virtual keyboard service interface to better handle keyboard state - Add proper cleanup of input mode state in component lifecycle
31 lines
766 B
TypeScript
31 lines
766 B
TypeScript
import './setup';
|
|
import '@affine/component/theme';
|
|
import '@affine/core/mobile/styles/mobile.css';
|
|
|
|
import { Telemetry } from '@affine/core/components/telemetry';
|
|
import { bindNativeDBApis } from '@affine/nbstore/sqlite';
|
|
import { StrictMode } from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
|
|
import { App } from './app';
|
|
import { NbStoreNativeDBApis } from './plugins/nbstore';
|
|
|
|
bindNativeDBApis(NbStoreNativeDBApis);
|
|
|
|
function mountApp() {
|
|
// oxlint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
const root = document.getElementById('app')!;
|
|
createRoot(root).render(
|
|
<StrictMode>
|
|
<Telemetry />
|
|
<App />
|
|
</StrictMode>
|
|
);
|
|
}
|
|
|
|
try {
|
|
mountApp();
|
|
} catch (err) {
|
|
console.error('Failed to bootstrap app', err);
|
|
}
|