mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
More scrict rules
This commit is contained in:
parent
71b6407d61
commit
fb2e492ce8
30 changed files with 126 additions and 89 deletions
|
|
@ -3,6 +3,8 @@ import {isUnd} from 'Common/Utils';
|
|||
import {componentExportHelper} from 'Component/Abstract';
|
||||
import {AbstractInput} from 'Component/AbstractInput';
|
||||
|
||||
const DEFAULT_ROWS = 5;
|
||||
|
||||
class TextAreaComponent extends AbstractInput
|
||||
{
|
||||
/**
|
||||
|
|
@ -13,7 +15,7 @@ class TextAreaComponent extends AbstractInput
|
|||
|
||||
super(params);
|
||||
|
||||
this.rows = params.rows || 5;
|
||||
this.rows = params.rows || DEFAULT_ROWS;
|
||||
this.spellcheck = isUnd(params.spellcheck) ? false : !!params.spellcheck;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue