Skip to content

Commit

Permalink
Merge pull request #1103 from ironmansoftware/1047
Browse files Browse the repository at this point in the history
Fixes #1047
  • Loading branch information
adamdriscoll authored Sep 12, 2019
2 parents f2786c2 + 9f7b713 commit 0540be3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
19 changes: 15 additions & 4 deletions src/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"label": "Build Debug",
"command": "./build.ps1",
"type": "shell",
"args": ["-Configuration", "Debug", "-NoHelp"],
"args": [
"-Configuration",
"Debug",
"-NoHelp"
],
"group": "build",
"presentation": {
"reveal": "always",
Expand All @@ -18,7 +22,10 @@
"label": "Build Release",
"command": "./build.ps1",
"type": "shell",
"args": ["-Configuration", "Release"],
"args": [
"-Configuration",
"Release"
],
"group": "build",
"presentation": {
"reveal": "always",
Expand All @@ -33,13 +40,17 @@
"presentation": {
"reveal": "always",
"panel": "new"
}
},
"problemMatcher": []
},
{
"label": "Run Materialize Test",
"command": "./UniversalDashboard.Materialize/Tests/driver.ps1",
"type": "shell",
"args": ["-Control", "${input:control}"],
"args": [
"-Control",
"${input:control}"
],
"group": "test",
"presentation": {
"reveal": "always",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class UdImageCarousel extends React.Component {
if(this.props.autoCycle){
this.onCarouselButtonClick(this.props)
setTimeout(() => {
$(`#${this.props.id}`).carousel('next')
this.instance.instance.next();
},this.props.speed)
}
else{
Expand Down Expand Up @@ -100,7 +100,7 @@ export default class UdImageCarousel extends React.Component {

return (

<Carousel carouselId={this.props.id} options={options} fixedItem={btn}>
<Carousel ref={x => this.instance = x} carouselId={this.props.id} options={options} fixedItem={btn}>
{carouselItems}
</Carousel>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Describe "New-UDImageCarousel" {

}

$carousel = Find-SeElement -Driver $driver -Id 'carousel-demo
'
$carousel = Find-SeElement -Driver $driver -Id 'carousel-demo'

it "Should have image carousel component" {
$carousel -eq $null | Should be $false
}
Expand Down

0 comments on commit 0540be3

Please sign in to comment.