mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-31 06:34:00 +00:00
fix(ui): multiple ComboMarkdownEditors on one page interfere (#8417)
When there are multiple combo-markdown-editors, then only the first will get changes from the toolbar buttons. Fixes: #6742 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8417 Reviewed-by: Beowulf <beowulf@beocode.eu> Co-authored-by: zokki <zokki.softwareschmiede@gmail.com> Co-committed-by: zokki <zokki.softwareschmiede@gmail.com>
This commit is contained in:
parent
81e59014da
commit
1937fcf476
3 changed files with 91 additions and 17 deletions
|
@ -79,6 +79,22 @@ func DeclareGitRepos(t *testing.T) func() {
|
|||
Filename: "a-file",
|
||||
Versions: []string{"{a}{а}"},
|
||||
}}, nil),
|
||||
newRepo(t, 2, "multiple-combo-boxes", nil, []FileChanges{{
|
||||
Filename: ".forgejo/issue_template/multi-combo-boxes.yaml",
|
||||
Versions: []string{`
|
||||
name: "Multiple combo-boxes"
|
||||
description: "To show something"
|
||||
body:
|
||||
- type: textarea
|
||||
id: textarea-one
|
||||
attributes:
|
||||
label: one
|
||||
- type: textarea
|
||||
id: textarea-two
|
||||
attributes:
|
||||
label: two
|
||||
`},
|
||||
}}, nil),
|
||||
newRepo(t, 11, "dependency-test", &tests.DeclarativeRepoOptions{
|
||||
UnitConfig: optional.Some(map[unit_model.Type]convert.Conversion{
|
||||
unit_model.TypeIssues: &repo_model.IssuesConfig{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue