Skip to content

Using return key on iOS WebView shows "undefined" in room textarea #227

@abrari

Description

@abrari

Describe the bug

I'm embedding a web with vue-advanced-chat in an iOS app using the default WebView. Everything works fine, except hitting "return" key on the soft keyboard replace the entire textarea with "undefined". Sending using send button on the footer works, though. Shift+Enter for multi line also works.

Steps to reproduce

Please see attached GIF and screenshot.

Expected behavior

Hitting "return" key should start a new line.

Screenshots

The problem:
Screen Recording 2021-10-12 at 23 45 28

Inspecting in safari devtools gives this error:
Screen Shot 2021-10-12 at 23 48 17

Device (please complete the following information)

  • OS: iOS 12 on iPhone 8 simulator
  • Browser: built-in safari/webkit WebView
  • Package version: 1.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions