Skip to content

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