Skip to content

Attachment of multiple CSS Classes #131

@thexmanxyz

Description

@thexmanxyz

Hey there,

I noticed a bug with the parameters activeClass and pagerClass. As soon as I define a custom class for pagerClass the activeClass wouldn't be rendered to the DOM. I'm not sure if this intended, however let's assume the following example:

jQuery('#some-slider').slippry({
  slippryWrapper: '<div class="sy-box" />',
  adaptiveHeight: false, 
  useCSS: true,
  autoHover: false,
  transition: 'horizontal',
  pagerClass: 'sy-pager xyz',
  activeClass: 'sy-active abc',
  auto: true
});

The above example would not render 'sy-active abc' for the class, it would simply render no class attribute and no class.

Moreover, I noticed not the overwrite alone causes the issue. If just 'sy-pager' is defined for the pagerClass it works as expected. Only if you change to a non default value the activeClass wouldn't be rendered out.

Edit: I noticed it's not related to the default value. It's the blank in pagerClass which causes the issue. Just custom strings work but a blank within the pagerClass strips out the activeClass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions