A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/unovue/reka-ui/commit/e0343918 below:

null value throws error (#1788) · unovue/reka-ui@e034391 · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+7

-3

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+7

-3

lines changed Original file line number Diff line number Diff line change

@@ -246,6 +246,10 @@ watch(modelValue, (_modelValue) => {

246 246

if (!endValue.value || _modelValue.end.compare(endValue.value) !== 0)

247 247

endValue.value = _modelValue.end.copy()

248 248

}

249 +

if (!_modelValue) {

250 +

startValue.value = undefined

251 +

endValue.value = undefined

252 +

}

249 253

})

250 254 251 255

watch([startValue, locale], ([_startValue]) => {

Original file line number Diff line number Diff line change

@@ -138,7 +138,7 @@ const open = useVModel(props, 'open', emits, {

138 138

const dateFieldRef = ref<InstanceType<typeof DateRangeFieldRoot> | undefined>()

139 139 140 140

watch(modelValue, (value) => {

141 -

if (value.start && value.start.compare(placeholder.value) !== 0) {

141 +

if (value && value.start && value.start.compare(placeholder.value) !== 0) {

142 142

placeholder.value = value.start.copy()

143 143

}

144 144

})

Original file line number Diff line number Diff line change

@@ -262,15 +262,15 @@ const {

262 262

})

263 263 264 264

watch(modelValue, (_modelValue, _prevValue) => {

265 -

if ((!_prevValue.start && _modelValue?.start)

265 +

if ((!_prevValue?.start && _modelValue?.start)

266 266

|| !_modelValue

267 267

|| !_modelValue.start

268 268

|| (startValue.value && !isEqualDay(_modelValue.start, startValue.value))

269 269

) {

270 270

startValue.value = _modelValue?.start?.copy?.()

271 271

}

272 272 273 -

if ((!_prevValue.end && _modelValue.end)

273 +

if ((!_prevValue?.end && _modelValue.end)

274 274

|| !_modelValue

275 275

|| !_modelValue.end

276 276

|| (endValue.value && !isEqualDay(_modelValue.end, endValue.value))

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4