Skip to content

Commit

Permalink
fix: adjust the am/pm time placeholder to hh:mm --
Browse files Browse the repository at this point in the history
Closes #1273
  • Loading branch information
Skaiir committed Oct 3, 2024
1 parent c403a86 commit 5bbb5b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function Timepicker(props) {
value={rawValue}
disabled={disabled}
readOnly={readonly}
placeholder={use24h ? 'hh:mm' : 'hh:mm ?m'}
placeholder={use24h ? 'hh:mm' : 'hh:mm --'}
autoComplete="off"
onInput={(e) => {
// @ts-expect-error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ describe('Datetime', function () {
const timeInput = formField.querySelector('input[type="text"]');
expect(timeInput).to.exist;
expect(timeInput.value).to.be.empty;
expect(timeInput.placeholder).to.equal('hh:mm ?m');
expect(timeInput.placeholder).to.equal('hh:mm --');

const adornment = formField.querySelector('.fjs-input-adornment');
expect(adornment).to.exist;
Expand All @@ -331,7 +331,7 @@ describe('Datetime', function () {
const timeInput = container.querySelector('input[type="text"]');
expect(timeInput).to.exist;
expect(timeInput.value).to.be.empty;
expect(timeInput.placeholder).to.equal('hh:mm ?m');
expect(timeInput.placeholder).to.equal('hh:mm --');
});

it('should render required label', function () {
Expand Down Expand Up @@ -659,7 +659,7 @@ describe('Datetime', function () {

expect(timeInput).to.exist;
expect(timeInput.value).to.be.empty;
expect(timeInput.placeholder).to.equal('hh:mm ?m');
expect(timeInput.placeholder).to.equal('hh:mm --');

const adornments = formField.querySelectorAll('.fjs-input-adornment');
expect(adornments.length).to.equal(2);
Expand Down

0 comments on commit 5bbb5b9

Please sign in to comment.