When I was using it with other plugins, I found that I couldn't input spaces. After checking, I found that another plugin monitored the space button and blocked default events, but did not block Input and Textarea. I tried to set inputStyle to "textarea", but it was still blocked, so I still couldn't input spaces. Is there any solution? thanks
Reproduction
The spacebar listening code for this other plugin
onKeyDown(" ", (e) => {
var element = e.target as HTMLElement;
if (!["INPUT", "TEXTAREA"].includes(element.tagName)) {
e.preventDefault();
}
pressSpace.value = true;
});
Describe the bug
When I was using it with other plugins, I found that I couldn't input spaces. After checking, I found that another plugin monitored the space button and blocked default events, but did not block Input and Textarea. I tried to set inputStyle to "textarea", but it was still blocked, so I still couldn't input spaces. Is there any solution? thanks
Reproduction
The spacebar listening code for this other plugin
System Info
Used Package Manager
npm
Validations