Merge pull request #3277 from loganhz/link

Fix accordion issue
This commit is contained in:
Vincent Fiduccia 2019-08-20 14:46:13 -07:00 committed by GitHub
commit 3f7b7868ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import layout from './template'
import { inject as service } from '@ember/service'
import { get, set, observer } from '@ember/object'
import { run } from '@ember/runloop';
import $ from 'jquery';
const NONE = 'none';
const INCOMPLETE = 'incomplete';
@ -87,6 +88,10 @@ export default Component.extend({
set(this, 'expanded', eoi);
});
}
if ( $('.accordion-detail-text a').length ) {
$('.accordion-detail-text a').attr('onclick', 'event.stopPropagation();');
}
});
},

View File

@ -7,7 +7,7 @@
</div>
<div class="title">
<span class="m-0">{{title}}</span>
<p class="help-block">{{detail}}</p>
<p class="help-block accordion-detail-text">{{detail}}</p>
</div>
{{#if showStatus}}
<div class="badge-state {{statusClass}}">