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

feat(tabs): add ability to prevent tab selection #3712

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

IlyaSurmay
Copy link
Contributor

Closes #1502

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

if (_hasLockedTab) {
e.preventDefault();
e.stopPropagation();
const activeLink = this.nav.nativeElement.querySelector('ul.nav li.active a');

This comment was marked as off-topic.

})
export class DemoTabsPreventSelectComponent {
deselect(tab: TabDirective) {
if (!confirm('Are you sure you want to leave this tab?')) {

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(tabs): add ability to prevent tab selection
3 participants