Skip to content

Commit

Permalink
BC-5523 - Fix time select in submission-element (#2883)
Browse files Browse the repository at this point in the history
* avoid element movement and focus selected time with keyboard

* fix typo in fileElement test
  • Loading branch information
MartinSchuhmacher authored Oct 26, 2023
1 parent ad98d60 commit 5eba5e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ describe("FileContentElement", () => {
});

describe("when v-card emits keydown.down event", () => {
it("should emit move-keyboard:edit event", async () => {
it("should not emit move-keyboard:edit event", async () => {
const { wrapper } = setup();

const card = wrapper.findComponent({ ref: "fileContentElement" });
Expand All @@ -229,7 +229,7 @@ describe("FileContentElement", () => {
});

describe("when v-card emits keydown.up event", () => {
it("should emit move-keyboard:edit event", async () => {
it("should not emit move-keyboard:edit event", async () => {
const { wrapper } = setup();

const card = wrapper.findComponent({ ref: "fileContentElement" });
Expand Down
4 changes: 3 additions & 1 deletion src/components/feature-date-time-picker/TimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:close-on-content-click="false"
transition="scale-transition"
nudge-bottom="70"
max-height="200"
min-width="180"
@input="onMenuToggle"
>
Expand All @@ -24,10 +25,11 @@
@keypress="isNumberOrColon"
@keydown.prevent.space="showTimeDialog = true"
@keydown.prevent.enter="showTimeDialog = true"
@keydown.up.down.stop
@update:error="onError"
/>
</template>
<v-list height="200" class="col-12 pt-1 px-0 overflow-y-auto">
<v-list class="col-12 pt-1 px-0 overflow-y-auto">
<v-list-item-group color="primary">
<div
v-for="(timeOfDay, index) in timesOfDayList"
Expand Down

0 comments on commit 5eba5e2

Please sign in to comment.