Skip to content

Commit

Permalink
Merge pull request #9 from dennisbaum/main
Browse files Browse the repository at this point in the history
improve: enable select text by dblclick
  • Loading branch information
jongacnik authored Apr 14, 2022
2 parents 2c99a29 + 288c7a9 commit e0f89ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/FieldsBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export default {
},
preventSelect (event) {
if (event.detail > 1) {
event.preventDefault()
if(!event.target.closest('.k-input')) {
event.preventDefault()
}
}
}
}
Expand All @@ -50,7 +52,7 @@ export default {
}
.k-block-fields-preview .k-block-title.with-border {
border-bottom: 1px solid rgba(0,0,0,.1);
border-bottom: 1px solid rgba(0,0,0,.1);
}
.k-block-fields-preview .k-form {
Expand Down

0 comments on commit e0f89ce

Please sign in to comment.