File tree Expand file tree Collapse file tree
src/content-handlers/iiif/modules/uv-shared-module Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -412,15 +412,20 @@ export class MetadataComponent extends BaseComponent {
412412
413413 if ( this . _data . limit && this . _data . content ) {
414414 if ( this . _data . limitType === LimitType . LINES ) {
415- toggleExpandTextByLines (
415+ const args = [
416416 $items ,
417417 this . _data . limit ,
418418 this . _data . content . less ,
419419 this . _data . content . more ,
420420 ( ) => { } ,
421421 this . _data . content . lessAriaLabelTemplate ,
422- this . _data . content . moreAriaLabelTemplate
423- ) ;
422+ this . _data . content . moreAriaLabelTemplate ,
423+ ] ;
424+
425+ // allow time for the sidebar to render
426+ setTimeout ( ( ) => {
427+ toggleExpandTextByLines . apply ( this , args ) ;
428+ } , 100 ) ;
424429 } else if ( this . _data . limitType === LimitType . CHARS ) {
425430 $value . ellipsisHtmlFixed ( this . _data . limit , ( ) => { } ) ;
426431 }
You canβt perform that action at this time.
0 commit comments