mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
regression polls could not be closed properly
This commit is contained in:
parent
660d5e0a35
commit
b7f58fe880
2 changed files with 6 additions and 3 deletions
|
@ -113,7 +113,10 @@ const rule = {
|
|||
|
||||
// default poll attributes
|
||||
const attributes = [["class", "poll"]];
|
||||
attributes.push([DATA_PREFIX + "status", "open"]);
|
||||
|
||||
if (!attrs['status']) {
|
||||
attributes.push([DATA_PREFIX + "status", "open"]);
|
||||
}
|
||||
|
||||
WHITELISTED_ATTRIBUTES.forEach(name => {
|
||||
if (attrs[name]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue