mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-28 21:02:31 +02:00
[FEAT] Focus cursor to textarea (#1959)
* Focus cursor to textarea Fix need for additional click to textarea before pasting * [FEAT] autofocus textarea on paste request closes #1959 * format arba * bundle --------- Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// update cache version every time there is a new deployment
|
// update cache version every time there is a new deployment
|
||||||
// so the service worker reinitializes the cache
|
// so the service worker reinitializes the cache
|
||||||
const CACHE_VERSION = 53
|
const CACHE_VERSION = 54
|
||||||
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
|
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
|
||||||
|
|
||||||
const getApiKey = request => {
|
const getApiKey = request => {
|
||||||
|
@@ -335,6 +335,7 @@ new Vue({
|
|||||||
this.parse.data.comment = ''
|
this.parse.data.comment = ''
|
||||||
this.parse.data.paymentChecker = null
|
this.parse.data.paymentChecker = null
|
||||||
this.parse.camera.show = false
|
this.parse.camera.show = false
|
||||||
|
this.focusInput('textArea')
|
||||||
},
|
},
|
||||||
updateBalance: function (credit) {
|
updateBalance: function (credit) {
|
||||||
LNbits.api
|
LNbits.api
|
||||||
@@ -799,6 +800,7 @@ new Vue({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
pasteToTextArea: function () {
|
pasteToTextArea: function () {
|
||||||
|
this.$refs.textArea.focus() // Set cursor to textarea
|
||||||
navigator.clipboard.readText().then(text => {
|
navigator.clipboard.readText().then(text => {
|
||||||
this.$refs.textArea.value = text
|
this.$refs.textArea.value = text
|
||||||
})
|
})
|
||||||
|
18
lnbits/static/bundle.min.js
vendored
18
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user