fix(stage-layouts): suppress mobile browser form assistance (#2460)

This commit is contained in:
RainbowBird
2026-09-04 15:56:01 +08:00
committed by GitHub
parent fb574e69da
commit e23fa64b62
2 changed files with 14 additions and 0 deletions
@@ -315,6 +315,16 @@ describe('interactive area synchronized state', () => {
}))
})
it('opts the mobile composer out of browser form assistance', async () => {
const { screen } = await renderArea(MobileInteractiveArea)
const input = screen.getByRole('textbox').element() as HTMLTextAreaElement
expect(input.getAttribute('autocomplete')).toBe('off')
expect(input.getAttribute('autocapitalize')).toBe('off')
expect(input.getAttribute('autocorrect')).toBe('off')
expect(input.spellcheck).toBe(false)
})
// https://github.com/moeru-ai/airi/pull/2086#discussion_r3755530944
it('keeps a failed mobile draft out of a newly selected session for Issue #2085', async () => {
// ROOT CAUSE:
@@ -564,6 +564,10 @@ onUnmounted(() => {
<!-- Android handles touch from the scrollable textarea, so it needs touch-none to keep the bubble drag active. -->
<BasicTextarea
v-model="messageInput"
autocomplete="off"
autocapitalize="off"
autocorrect="off"
:spellcheck="false"
:placeholder="t('stage.message')"
:class="[
'font-cute',