Skip to content

Commit f13d303

Browse files
authored
Fix completition widget: body placement + style. (#8119)
1 parent be26349 commit f13d303

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/web_app/lib/src/widget/completion/widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ void create(HTMLElement element, Map<String, String> options) {
8686
dropdown: dropdown,
8787
data: data,
8888
);
89-
// Add dropdown after the <input>
90-
document.body!.after(dropdown);
89+
// Append dropdown to body
90+
document.body!.append(dropdown);
9191
});
9292
}
9393

pkg/web_css/lib/src/_search.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@
121121
cursor: pointer;
122122
white-space: nowrap;
123123
padding: 0px 3px;
124-
}
125-
126-
>.completion-option-selected {
127-
background-color: var(--pub-selected-bgColor);
128124

129125
&:hover {
130126
background-color: var(--pub-selected-bgColor);
131127
}
132128
}
129+
130+
>.completion-option-selected {
131+
background-color: var(--pub-selected-bgColor);
132+
}
133133
}

0 commit comments

Comments
 (0)