mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Fix task tag cut off (#1734)
This commit is contained in:
parent
0a7696200a
commit
d08bdd771e
2 changed files with 5 additions and 2 deletions
|
@ -290,7 +290,8 @@ function initTagsSelector() {
|
|||
closeOnSelect: true,
|
||||
withoutArrow: true,
|
||||
dynamicCreation: true,
|
||||
dynamicCreationDelimiter: [',']
|
||||
dynamicCreationDelimiter: [','],
|
||||
placeholderSize: '250px'
|
||||
}).on('select2:select', (e) => {
|
||||
var params = e.params.data;
|
||||
var newTag = null;
|
||||
|
|
|
@ -57,7 +57,9 @@ $.fn.extend({
|
|||
// Placeholder fix for ajax fields
|
||||
if (config.ajax) {
|
||||
setTimeout(() => {
|
||||
select2.next().find('.select2-search__field').css('width', 'auto');
|
||||
select2.next().find('.select2-search__field').css(
|
||||
'width', config.placeholderSize || 'auto'
|
||||
);
|
||||
}, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue