Skip to content

Commit

Permalink
Add ym-disable-keys css class
Browse files Browse the repository at this point in the history
  • Loading branch information
temnov98 committed Jan 13, 2024
1 parent bc27b3c commit fed6706
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ class AddNewTaskComponent extends Component {
toHtml() {
return t`
<div class="row add-new-task">
<input onkeydown="${(event) => this.onKeyDown(event)}">
<input
class="ym-disable-keys"
onkeydown="${(event) => this.onKeyDown(event)}"
>
<button onclick="${() => this.addTask()}">
+
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AddPresetComponent extends Component {
<div class="padding-2 max-width">
<textarea
id="${this.inputId}"
class="preset-text"
class="preset-text ym-disable-keys"
onblur="${() => this.onFocusOut()}"
onkeydown="${(event) => this.onKeyDown(event)}"
placeholder="${title}..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PresetTextComponent extends Component {
return t`
<textarea
id="${this.inputId}"
class="preset-text"
class="preset-text ym-disable-keys"
onblur="${() => this.onFocusOut()}"
onkeydown="${(event) => this.onKeyDown(event)}"
>${this.preset.title.trim()}</textarea>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class TagItemTextComponent extends AutoSubscribeComponent {
<input
id="${this.inputId}"
style="background-color: ${this.tag.color}"
class="tag-item-component-text"
class="tag-item-component-text ym-disable-keys"
onblur="${() => this.onFocusOut()}"
onkeydown="${(event) => this.onKeyDown(event)}"
value="${this.tag.title}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TaskTextComponent extends Component {
return t`
<textarea
id="${this.inputId}"
class="task-text-container-input"
class="task-text-container-input ym-disable-keys"
onblur="${() => this.onFocusOut()}"
onkeydown="${(event) => this.onKeyDown(event)}"
>${this.task.title.trim()}</textarea>
Expand Down

0 comments on commit fed6706

Please sign in to comment.