Comments (5)
Hello @tjadea,
Generally for these kind of use-cases I ask people to provide a sandbox example showing the issue. Could you please edit the following demo as to show the problem, and provide the new link?
I'll reopen the ticket once that's done.
Best,
Francisco Hodge
from simple-keyboard.
once I give fix value to "value" variable, backspace does not work and on clicking any key it starts new input. Ideally it should continue to add input after value which is given in input.
e.g I assigned value="abcd";
why is it so?
from simple-keyboard.
Hello @AmanChhabra-A746623,
You need to update the internal simple-keyboard input with your default value. To do that, check out setInput
.
https://simple-keyboard.com/documentation/#setInput
Regards,
Francisco Hodge
from simple-keyboard.
Hello @hodgef,
It seems that I run into the same problem. However I didn't manage to make it working on codesandbox, because of some dependencies problem, have a look at the repo I prepared:
https://github.com/pawel-elmi/SimpleKeyboardForms
What I figured out is that the refresh of the reactive form depends on "input" event which simple-keyboard(later S-K) doesn't emit. This can be seen clearly when you type sth using S-K (i.e "qwerty") the input value is updated but the form value is not, unless you type any button on the physical keyboard - then the whole input shows up magically.
Maybe you can give me a hint, how to resolve this problem.
PL.
from simple-keyboard.
Hello @pawel-elmi,
If your 3rd-party dependency requires an event to be sent, you can send it yourself using dispatchEvent
.
In your test repo, add the following line in the simple-keyboard onChange
callback (after the input value is set):
(<HTMLInputElement>document.getElementById(this.inputName)).dispatchEvent(new KeyboardEvent('input'));
Please feel free to create a new thread if you run into issues.
Regards,
Francisco Hodge
from simple-keyboard.
Related Issues (20)
- Add icons or images to buttons HOT 1
- your web is not opened HOT 1
- Prevent showing system keyboard on tablets HOT 3
- Support for mouse element HOT 2
- Japanese Flick Input (Mobile) HOT 3
- excludeFromLayout doesnt work HOT 2
- can i use in vue3? HOT 1
- Keyboard button not showing with tailwind HOT 2
- Not responsive on mobile HOT 1
- CSS partialy Apply HOT 1
- BackSpace Issue HOT 1
- need more layers (right alt) HOT 2
- Button Hold : Allow additional keys via options HOT 6
- `layoutCandidates` is not case sensitive HOT 1
- When simple-keyboard is used with accessibility voice over turned on, hitting q enters 1 in input HOT 1
- Simple-keyboard Not Rendering HOT 2
- When set layoutCandidatesPageSize = 15, There is an issue with the background color of the candidate box
- Not displaying keyboard outside app.component HOT 1
- Virtual Keyboard, keys are coming all white HOT 1
- Can this component be dragged by the mouse motor? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-keyboard.