-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heading Block: Inconsistent location of HTML Anchor in Advanced section of sidebar #7964
Comments
I was unable to reproduce this in testing because the Heading block > Advanced panel > Anchor HTML field was always first in my testing: Video: 38s @bph I'm closing this issue for now because I was unable to reproduce the problem as described. Totally happy to re-open anytime tho if there's something I've missed (!) or if we can come up with a way to consistently reproduce the issue. If you can still reliably reproduce the problem, could you confirm for me which version of Gutenberg you are testing with and also try a complete clearing of cache and cookies and re-testing to see if the reason you're seeing a strange ordering of options is from some kind of stuck local cache? |
Yes, I took me a while to actually pin down why I was so irritated by the different locations of the HTML Anchor field. It's not always and definitely one attempt to reproduce it won't let you see it. |
Okay! Thanks for commenting (and for submitting a well-written issue!) and if you think of anything else to try or if it becomes a more consistent problem for you, please comment here again and I will see it and give it another round of testing. fwiw, I did try several attempts to reproduce when I tested earlier, but only in the one session/browser. |
@designsimply - This time, I think, I got the right combination. Here is a video in Google Chrome I am able to consistently reproduce this behavior in Chrome and also in Firefox. |
Re-tested with the updated steps and confirmed that the Heading Block > Sidebar > Advanced > HTML Anchor text box appears 2nd only immediately after the block is transformed into a heading block and then the HTML Anchor text box appears 1st every time the block settings are accessed from that point forward. |
I saw this happening yesterday with a custom block I was working on. Essentially, the order of my controls varied randomly. Refiling as |
@gziolo I remember discussing one of these around order of slots / fills. |
Took a quick look at this - thanks Birgit for the clear, reproducible instructions. #11123 doesn't fix this because it's a pure refactoring: it makes SlotFill to use the new Context API without changing external behaviour. This is the problem: the SlotFill component relies on loading component order to render the Fills. It follows a FIFO mechanism that uses
|
Is this issue still valid? |
When repeating the latest test case, it seems the location of the HTML Anchor field stays consistently in place. @paaljoachim Thanks for the prompt to re-test. Closing now. |
Describe the bug
When accessing the "Advanced" section for the first time the "HTML Anchor" item is in second place. On subsequent views, the HTML Anchor section is the first slot.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the location of the HTML Anchor to stay in the same place in the menu
Screenshots
Here is a video: http://recordit.co/bpv6h1VtIu
Desktop (please complete the following information):
Also reproducible in Google Chrome
--- OP edited with new instructions and video 7/23 --bph
The text was updated successfully, but these errors were encountered: