Skip to content

Commit e5db365

Browse files
committed
fix: CFormRadio: fix props import which were deleting props from source
1 parent 683b0bf commit e5db365

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/Form/CFormRadio.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<script>
22
import CFormCheckbox from './CFormCheckbox'
3-
delete CFormCheckbox.props.trueValue
4-
delete CFormCheckbox.props.falseValue
3+
//solution made to avoid deleting props from CFormCheckbox
4+
const props = Object.assign({}, CFormCheckbox.props)
5+
delete props.trueValue
6+
delete props.falseValue
57
68
export default {
79
name: 'CFormRadio',
810
extends: CFormCheckbox,
11+
props,
912
type: 'radio',
1013
methods: {
1114
getCheckState () {

0 commit comments

Comments
 (0)