slice string
This commit is contained in:
parent
36d2d2ac73
commit
ae7b0a6b7f
@ -19,7 +19,7 @@ export const Keyboard = ({ onChange }) => {
|
||||
if (typeof key === 'string') {
|
||||
onChange(v => v + key.toUpperCase());
|
||||
} else {
|
||||
onChange(v => v.split('').slice(0, -1).join(''))
|
||||
onChange(v => v.slice(0, -1))
|
||||
}
|
||||
}
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user