Reword comment explanation

This commit is contained in:
chrisgarrity 2021-09-03 10:14:43 -04:00 committed by GitHub
parent 04401859a2
commit d0df27787a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -952,8 +952,8 @@ export default class UI {
static createFormForText (p) {
var tf = newHTML('div', 'pagetext off', p);
tf.setAttribute('id', 'textbox');
// If the textbox is click or touched, the input may lost focus,
// and it may cause the text form miss closed.
// If the textbox background is clicked or touched, the input loses focus,
// which causes the text input to close unexpectedly
var eatEvent = function (e) {
e.stopPropagation();
e.preventDefault();