Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit d6c13b1

Browse files
authored
Merge pull request #30 from alvarosaburido/hotfix/textarea_methods
Hotfix textarea methods added
2 parents c6d0493 + bfe34f7 commit d6c13b1

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## 0.2.1 - 2020-05-27
9+
10+
### Fixed
11+
12+
- Text Area methods ([#29](https://github.com/alvarosaburido/vue-dynamic-forms/issues/29))
13+
814
## 0.2.0 - 2020-05-26
915

1016
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@asigloo/vue-dynamic-forms",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Easy way to dynamically create reactive forms in vue based on varying business object model",
55
"author": "Alvaro Saburido <[email protected]>",
66
"license": "MIT",

src/components/input-textarea/InputTextarea.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,23 @@ const props = {
77
},
88
};
99

10+
const methods = {
11+
valueChange() {
12+
this.$emit('change', this.formControl.value);
13+
},
14+
onFocus() {
15+
this.$emit('focus');
16+
},
17+
onBlur() {
18+
this.$emit('blur');
19+
this.formControl.touched = true;
20+
},
21+
};
22+
1023
const InputTextarea = {
1124
name: 'asInputTextarea',
1225
props,
26+
methods,
1327
};
1428

1529
export default InputTextarea;

0 commit comments

Comments
 (0)