goodteditor-ui 1.0.100 → 1.0.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goodteditor-ui",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "main": "index.js",
5
5
  "homepage": "https://goodt-ui.netlify.app/",
6
6
  "scripts": {
@@ -7,9 +7,7 @@
7
7
  @keydown.stop="onKeydown"
8
8
  @keyup.stop="onKeyup"
9
9
  @focus="onFocus"
10
- @focusin.stop="onFocus"
11
10
  @blur="onBlur"
12
- @focusout.stop="onBlur"
13
11
  @click.stop
14
12
  v-on="{
15
13
  [event]: onActivate
@@ -22,7 +20,6 @@
22
20
  </div>
23
21
  </template>
24
22
  <script>
25
-
26
23
  const Size = {
27
24
  SMALL: { name: 'small', class: ['text-small'] },
28
25
  NORMAL: { name: 'normal', class: [] },
@@ -166,6 +163,9 @@ export default {
166
163
  * @param {string} value
167
164
  */
168
165
  setValue(value) {
166
+ if (value === this.valueLast) {
167
+ return;
168
+ }
169
169
  this.$el.textContent = value;
170
170
  this.valueLast = value;
171
171
  this.$emit('input', value);
@@ -216,7 +216,7 @@ export default {
216
216
  &:empty {
217
217
  border-bottom: 2px dotted var(--color-primary);
218
218
  &:before {
219
- content: ' '
219
+ content: ' ';
220
220
  }
221
221
  }
222
222