parent
b93c72e33a
commit
c5757e9afb
3 changed files with 17 additions and 1 deletions
|
@ -77,7 +77,7 @@
|
||||||
var _a, _y, regexp, match, atSymbolsWithBar, atSymbolsWithoutBar;
|
var _a, _y, regexp, match, atSymbolsWithBar, atSymbolsWithoutBar;
|
||||||
atSymbolsWithBar = Object.keys(this.app.controllers).join('|');
|
atSymbolsWithBar = Object.keys(this.app.controllers).join('|');
|
||||||
atSymbolsWithoutBar = Object.keys(this.app.controllers).join('');
|
atSymbolsWithoutBar = Object.keys(this.app.controllers).join('');
|
||||||
subtext = subtext.split(' ').pop();
|
subtext = subtext.split(/\s+/g).pop();
|
||||||
flag = flag.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
flag = flag.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
||||||
|
|
||||||
_a = decodeURI("%C3%80");
|
_a = decodeURI("%C3%80");
|
||||||
|
|
4
changelogs/unreleased/gfm-new-line-fix.yml
Normal file
4
changelogs/unreleased/gfm-new-line-fix.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Fixed GFM dropdown not showing on new lines
|
||||||
|
merge_request:
|
||||||
|
author:
|
|
@ -47,6 +47,18 @@ feature 'GFM autocomplete', feature: true, js: true do
|
||||||
expect_to_wrap(true, label_item, note, label.title)
|
expect_to_wrap(true, label_item, note, label.title)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "shows dropdown after a new line" do
|
||||||
|
note = find('#note_note')
|
||||||
|
page.within '.timeline-content-form' do
|
||||||
|
note.native.send_keys('test')
|
||||||
|
note.native.send_keys(:enter)
|
||||||
|
note.native.send_keys(:enter)
|
||||||
|
note.native.send_keys('@')
|
||||||
|
end
|
||||||
|
|
||||||
|
expect(page).to have_selector('.atwho-container')
|
||||||
|
end
|
||||||
|
|
||||||
it "does not show dropdown when preceded with a special character" do
|
it "does not show dropdown when preceded with a special character" do
|
||||||
note = find('#note_note')
|
note = find('#note_note')
|
||||||
page.within '.timeline-content-form' do
|
page.within '.timeline-content-form' do
|
||||||
|
|
Loading…
Reference in a new issue