Skip to content

Commit

Permalink
fix(time-picker): [time-picker] fix $refs undefined bug (opentiny#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
18003228289 authored and kagol committed Dec 11, 2024
1 parent 6cce257 commit ba3b3c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/renderless/src/time-spinner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import { modifyTime } from '../common/deps/date-util'
import { DATEPICKER } from '../common'
import { isBrowser } from '../common/browser'

export const getArrowHourList = (state) => () => {
const hours = state.hours
Expand Down Expand Up @@ -204,7 +205,7 @@ export const adjustCurrentSpinner =
export const adjustSpinner =
({ api, props, vm, state }) =>
(type, value) => {
if (props.arrowControl) {
if (props.arrowControl || !isBrowser) {
return
}

Expand Down

0 comments on commit ba3b3c4

Please sign in to comment.