mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 21:31:04 +08:00
regression polls could not be closed properly
This commit is contained in:
@ -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]) {
|
||||
|
Reference in New Issue
Block a user