Skip to content
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

silence fomantic error regarding tabs #9713

Merged
merged 1 commit into from
Jan 12, 2020
Merged

Conversation

silverwind
Copy link
Member

Fomantic expects all tabs to have a target element with content as defined by the data-tab attribute. All our usage of the tab module seems to use <a> element tabs that link to new pages so these content elements are never present and fomantic complains about that in the console with
an "Activated tab cannot be found" error. This silences that error.

Ref: https://fomantic-ui.com/modules/tab.html

Errors can be seen in the browser console on every page containing those link-style tabs, for example https://try.gitea.io/silverwind/symlink-test.

Fomantic expects all tabs to have a target element with content as
defined by the data-tab attribute. All our usage of the tab module seems
to use <a> element tabs that link to new pages so these content elements
are never present and fomantic complains about that in the console with
an "Activated tab cannot be found" error. This silences that error.
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jan 11, 2020
@zeripath zeripath added backport/v1.11 type/bug topic/ui Change the appearance of the Gitea UI labels Jan 11, 2020
@zeripath zeripath added this to the 1.12.0 milestone Jan 11, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 12, 2020
@sapk sapk merged commit 86464de into go-gitea:master Jan 12, 2020
@sapk
Copy link
Member

sapk commented Jan 12, 2020

@silverwind please send a backport to v1.11 if possible.

silverwind added a commit to silverwind/gitea that referenced this pull request Jan 12, 2020
Fomantic expects all tabs to have a target element with content as
defined by the data-tab attribute. All our usage of the tab module seems
to use <a> element tabs that link to new pages so these content elements
are never present and fomantic complains about that in the console with
an "Activated tab cannot be found" error. This silences that error.
@silverwind
Copy link
Member Author

backport in #9718

@sapk sapk added the backport/done All backports for this PR have been created label Jan 12, 2020
techknowlogick pushed a commit that referenced this pull request Jan 12, 2020
Fomantic expects all tabs to have a target element with content as
defined by the data-tab attribute. All our usage of the tab module seems
to use <a> element tabs that link to new pages so these content elements
are never present and fomantic complains about that in the console with
an "Activated tab cannot be found" error. This silences that error.
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants