* Now user can only input valid digits, and '-' is not allowed in positive-only inputs.
* Fix ISSUE#3319
Now user can only input valid digits, and '-' is not allowed in positive-only inputs.
* Revert "Fix ISSUE#3319"
This reverts commit a4e34f5af3.
* Fix ISSUE#3319
Created a helper function, and added a unit test to cover it.
* Fix ISSUE#3319
Located the helper function outside the component, and renamed some unit tests to make their meaning more clear.
* Fix ISSUE#3319
- Added an attribute 'integerOnly' to component 'Input', to represent whether this input component instance will accept decimal.
- Improved input-check function and paste-check function, to avoid invalid number format (like '3-3', '3.3.3').
- Added new unit tests to test new input-check and paste-check functions.
- Added attribute 'integerOnly' to Input instances in the TopicForm component.