mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Fallback to light DOM in TextEditorView::find if nothing found in shadow
This commit is contained in:
@@ -98,7 +98,11 @@ class TextEditorView extends View
|
||||
lines.length > 0
|
||||
|
||||
find: ->
|
||||
@root.find.apply(@root, arguments)
|
||||
shadowResult = @root.find.apply(@root, arguments)
|
||||
if shadowResult.length > 0
|
||||
shadowResult
|
||||
else
|
||||
super
|
||||
|
||||
# Public: Get the underlying editor model for this view.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user