Opened 8 years ago
Closed 8 years ago
#39100 closed defect (bug) (fixed)
Customize: Edit shortcuts do not work if page hasn't been saved and published
Reported by: | davidakennedy | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.7.1 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Customize | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
Description
This may not be possible to fix given the workflow, but it seemed like an issue.
In Twenty Seventeen:
- Go to Customizer — Theme Options.
- Make a new page (for a section).
- Click on the edit icon for that new page/section.
- Edit icon doesn’t do anything.
- Click edit icon for existing page. That one works.
This makes some sense because the new page isn't saved and published yet, but it seems like the preview should still work with the page.
Reproduced by myself, @laurelfulford and @melchoyce.
Attachments (1)
Change History (9)
#1
@
8 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.7.1
- Owner set to sirbrillig
- Status changed from new to assigned
#2
@
8 years ago
Looking into it. Definitely the click handler is not being added when a page section is refreshed. The following patch seems to fix the issue in my tests, which is a little odd. The patch just adds the click handler before the button is appended to the page. Since the reference should be maintained I don't know why that would work but my tests showed that the handler wasn't being removed; it looked like it was just not being added.
This ticket was mentioned in Slack in #core-customize by celloexpressions. View the logs.
8 years ago
#5
@
8 years ago
- Keywords commit added
- Owner changed from sirbrillig to westonruter
- Status changed from assigned to reviewing
Confirmed that 39100.diff works. Odd, but very unlikely to cause other issues, so let's get it in.
@sirbrillig can you assist with debugging this? It seems like the
click
handler is getting lost when the homepage section is refreshed.