Skip to content

Commit a744246

Browse files
authored
Merge pull request #429 from unchartedsoftware/issue/427
#427 - disabled spell check on token input, hide edit cursor when preview is visible
2 parents 8b7068f + b05372e commit a744246

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/builders/generic/option-builder.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export class OptionBuilder extends Builder {
211211
<span className='text-input'>
212212
<span className='text-muted preview'>{previewText}</span>
213213
<input type='text'
214+
spellCheck='false'
214215
className={inputClass}
215216
onKeyDown={this.handleKeyDown}
216217
onKeyUp={this.handleKeyUp}

src/style/lex.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ div.lex-box div.token {
165165
}
166166

167167
&.has-preview {
168-
color: transparent;
168+
color: transparent; // Make the text transparent so we dont see it when we have a preview value
169+
text-indent: -9999em; // Shift the text offscreen so we dont see any cursors when we have a preview value
169170
}
170171
}
171172

0 commit comments

Comments
 (0)