Skip to content

Commit

Permalink
fix(core/date-picker): done button hidden (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalosard authored Jul 17, 2023
1 parent e989be5 commit b7e95f5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/core/src/components/date-picker/date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,9 @@ export class DatePicker {
})}
</div>

<div class={{ button: true, hidden: !this.individual }}>
<div
class={{ button: true, hidden: !this.individual || !this.range }}
>
<ix-button onClick={() => this.onDone()}>
{this.textSelectDate}
</ix-button>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<head>
<title>Date picker example</title>
</head>

<body class="theme-classic-dark">
<!-- Preview code -->
<ix-date-picker from="2022/12/15" to="2022/12/24"></ix-date-picker>
</script>
<!-- Preview code -->
<script type="module" src="./init.js"></script>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<head>
<title>Date picker example</title>
</head>

<body class="theme-brand-dark">
<!-- Preview code -->
<ix-date-picker></ix-date-picker>
</script>
<!-- Preview code -->
<script type="module" src="./init.js"></script>
</body>
Expand Down

0 comments on commit b7e95f5

Please sign in to comment.