Commit c1d2abca authored by David Foucher's avatar David Foucher

Merge branch '16-impossible-de-sauvegarder-une-modification' into 'master'

Resolve "Impossible de sauvegarder une modification"

Closes #16

See merge request !49
parents 4af59403 3f5c6492
Pipeline #2957 passed with stages
in 6 minutes and 11 seconds
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</div> </div>
<div class="row mb-3"> <div class="row mb-3">
<label for="content"><u>Contenu de la règle</u></label> <label for="content"><u>Contenu de la règle</u></label>
<TextAreaAutosize id="content" :value="content" class="rule-modification-text" :class="{editErrorClass: error_flags.notModified }" v-focus/> <TextAreaAutosize id="content" v-model="content" class="rule-modification-text" :class="{editErrorClass: error_flags.notModified }" v-focus/>
<span v-if="error_flags.notModified" class="text-danger font-weight-light">Aucune modification n'a été renseignée</span> <span v-if="error_flags.notModified" class="text-danger font-weight-light">Aucune modification n'a été renseignée</span>
</div> </div>
<div class="row mb-3"> <div class="row mb-3">
...@@ -169,9 +169,6 @@ ...@@ -169,9 +169,6 @@
inserted: function (el) { inserted: function (el) {
el.focus(); el.focus();
}, },
componentUpdated: function (el) {
el.focus();
},
} }
}, },
created: function() { created: function() {
......
...@@ -87,11 +87,10 @@ export default { ...@@ -87,11 +87,10 @@ export default {
}, },
created () { created () {
this.val = this.value this.val = this.value
this.$el.focus(); //this.$el.focus();
}, },
methods: { methods: {
resize () { resize () {
console.log("resized");
const important = this.isHeightImportant ? 'important' : '' const important = this.isHeightImportant ? 'important' : ''
//this.height = `auto${important ? ' !important' : ''}` //this.height = `auto${important ? ' !important' : ''}`
this.$nextTick(() => { this.$nextTick(() => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment