mirror of
https://github.com/plankanban/planka.git
synced 2025-08-09 15:35:29 +02:00
fix: Prevent scroll when focusing
This commit is contained in:
parent
7e07a75124
commit
1dacd6e700
10 changed files with 31 additions and 14 deletions
|
@ -3,9 +3,10 @@ import { Input as SemanticUIInput } from 'semantic-ui-react';
|
|||
import InputPassword from './InputPassword';
|
||||
import InputMask from './InputMask';
|
||||
|
||||
const Input = SemanticUIInput;
|
||||
export default class Input extends SemanticUIInput {
|
||||
static Password = InputPassword;
|
||||
|
||||
Input.Password = InputPassword;
|
||||
Input.Mask = InputMask;
|
||||
static Mask = InputMask;
|
||||
|
||||
export default Input;
|
||||
focus = (options) => this.inputRef.current.focus(options);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import InputMask from 'react-input-mask';
|
||||
|
||||
export default class MaskedInput extends InputMask {
|
||||
focus() {
|
||||
this.getInputDOMNode().focus();
|
||||
focus(options) {
|
||||
this.getInputDOMNode().focus(options);
|
||||
}
|
||||
|
||||
select() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue