Merge pull request #2129 from tjallingt/patch-1

fix: onInit and onRender are always called with the instance
This commit is contained in:
Francisco Hodge 2023-11-02 03:49:57 +00:00 committed by GitHub
commit 26220c445f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,12 +264,12 @@ export interface KeyboardOptions {
/** /**
* Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts). * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).
*/ */
onRender?: (instance?: SimpleKeyboard) => void; onRender?: (instance: SimpleKeyboard) => void;
/** /**
* Executes the callback function once simple-keyboard is rendered for the first time (on initialization). * Executes the callback function once simple-keyboard is rendered for the first time (on initialization).
*/ */
onInit?: (instance?: SimpleKeyboard) => void; onInit?: (instance: SimpleKeyboard) => void;
/** /**
* Retrieves the current input * Retrieves the current input