Skip to content

jQuery is not defined #11

Closed
Closed
@spiritedsnowcat

Description

@spiritedsnowcat

Versions
Node: v6.11.4
React: 16.0.0
jQuery: 3.2.1
jQuery UI: 1.12.1
Yarn: v1.2.1

Problem
The keyboard doesn't show by default, and when the text field it creates is touched or clicked on, it doesn't show. Then, when backspacing in that field, it returns the following error:

Uncaught ReferenceError: jQuery is not defined
at HTMLInputElement. (C:\Development\TestApp\node_modules\virtual-keyboard\dist\js\jquery.keyboard.js:863)
at HTMLInputElement.dispatch (C:\Development\TestApp\node_modules\jquery\dist\jquery.js:5206)
at HTMLInputElement.elemData.handle (C:\Development\TestApp\node_modules\jquery\dist\jquery.js:5014)

Setup
I installed react-virtual-keyboard from the repository using the command: "yarn add https://github.com/Utzel-Butzel/react-virtual-keyboard.git" and "yarn rebuild-native-modules". When referencing the keyboard from react, I use "import Keyboard from 'react-virtual-keyboard';". I have the following code for testing the component:

<Keyboard name='keyboard' value={m.first_name} options={{ type:"input", layout: "querty", alwaysOpen: true, usePreview: false, useWheel: false, stickyShift: false, appendLocally: true, color: "light", updateOnChange: true, initialFocus: true, display: { "accept" : "Submit" } }} ref="testkeyboard" />

Additional
jQuery is tested working. Not sure why it's complaining about jQuery. When adding the onChange and onAccept event listeners, it also complains with "Unknown event handler property onAccepted". Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions