-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[related #6080] Fix startOffset issue when useCookie is true #6902
Conversation
After applying the patch and using your sample code always Tab4 will be opened. But what I would expect when using
is that Tab4 is shown on initial page load (localStorage or cookie not yet set) and then the last selected tab on all subsequent page loads. |
Thanks @Erftralle for testing. |
Unfortunately for me it was not a succesfull one :( .
Yes, I know that. Is this answer related to my previous post? If yes, I don't understand you. I was talking about another test case and a different behaviour I would expect. |
Ahh ok. Then I think didn't understand your question clearly. Is another bug found? As per my opinion Test cases would be like,
|
Seems that we disagree about the expected behaviour of the third test case you mentioned (useCookie => true and startOffset > 0). Lets see if there are other testers having an opinion to that point. |
I cannot reproduce, as tab3 is opened after the reload (after first selecting tab1 & tab2); no patch applied. |
Same here, I cannot reproduce the issue (tried in com_search). This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6902. |
a01486b
to
17541d4
Compare
@Erftralle @josien @slibbe can you guys try it again. There was an issue in default behaviour of using storage. By Default storage is not enabled. |
Okay, we had a big discussion on this at PBF 2 in JUG Munich. It is working as expected, but are you sure on this? Issues: 1.) IF you want to have the first (0) to be open this is not possible, offset is ignored when you use cookie and offset is zero. 2.) useCookie has no use if start offset is greater then zero. From a developer perspective this is irritating! This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6902. |
I have tested this item ✅ successfully on 17541d4 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6902. |
I have tested this item ✅ successfully on 17541d4 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6902. |
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6902. |
Thank you @gunjanpatel! We decided to merge this PR. |
Thanks you all for testing and merging. |
Thanks @Erftralle for reporting issue in #6080 (comment)
Testing and Reproduce info
Please follow the instructions given in #6080 to reproduce the issue.
You can set
startOffset
and enableuseCookie
by setting options shown as below.No Backward Compatibility issue
Please also check and confirm that it's not breaking backward compatibility.