A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/166a932fb11fa552714aba7df67992e1265b9047 below:

handle change event for all mobil… · bootstrap-vue/bootstrap-vue@166a932 · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+19

-14

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+19

-14

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

@@ -94,7 +94,15 @@ rendered and a console warning will be issued.

94 94

- Older version of Firefox may not support `readonly` for `range` type inputs.

95 95

- Input types that do not support `min`, `max` and `step` (i.e. `text`, `password`, `tel`, `email`,

96 96

`url`, etc) will silently ignore these values (although they will still be rendered on the input

97 -

markup) iv values are provided.

97 +

markup) if values are provided.

98 + 99 +

**Caveats with predictive text entry and IME composition entry:**

100 + 101 +

- When using predictive text auto-suggested words, the `v-model` will not update until the

102 +

auto-suggested word is selected (or a space is typed). If an auto suggested word is not selected,

103 +

the v-model will update with the current _displayed text_ of the input when the input is blurred.

104 +

- When using IME composition (ie. Chinese, Japanese, etc), the `v-model` will not update until the

105 +

IME composition is completed.

98 106 99 107

### Range type input

100 108

@@ -155,7 +163,7 @@ In the example below, we double the number of steps by using step="0.5".

155 163

convert the value to a native number by using `Number(value)`, `parseInt(value, 10)`,

156 164

`parseFloat(value)`, or use the `number` prop.

157 165 158 -

**Note:** Bootstrap v4.1 CSS does not include styling for range inputs inside input groups, nor

166 +

**Note:** Bootstrap v4 CSS does not include styling for range inputs inside input groups, nor

159 167

validation styling on range inputs. However, BootstrapVue includes custom styling to handle these

160 168

situations until styling is included in Bootstrap v4.

161 169 Original file line number Diff line number Diff line change

@@ -251,14 +251,16 @@ If you want to customize the field property names (for example using `name` fiel

251 251 252 252

## Radio value and v-model

253 253 254 -

`<b-form-radio>` and `<b-form-radio-group>` do not have a value by default. You must explicitly

255 -

supply a value (to which the `v-model` is set to when the radio is checked) via the `value` prop.

254 +

`<b-form-radio>` components do not have a value by default. You must explicitly supply a value via

255 +

the `value` prop on `<b-form-radio>`. This value will be sent to the `v-model` when the radio is

256 +

checked.

256 257 257 258

The `v-model` of both `<b-form-radio>` and `<b-form-radio-group>` binds to the `checked` prop. To

258 -

pre-check a radio, you must set the `v-model` value to the radio's value. Do not use the `checked`

259 -

prop directly.

259 +

pre-check a radio, you must set the `v-model` value to the one of the radio's value (i.e. must match

260 +

the value of specified on one of the the radio's `value` prop). Do not use the `checked` prop

261 +

directly. Each radio in a radio group _must_ have a unique value.

260 262 261 -

Radio supports values of many types, such as a `string`, `boolean`, `number`, or an `object`.

263 +

Radios support values of many types, such as a `string`, `boolean`, `number`, or a plain `object`.

262 264 263 265

## Inline or stacked radios

264 266 Original file line number Diff line number Diff line change

@@ -182,7 +182,7 @@ export default {

182 182

// https://github.com/bootstrap-vue/bootstrap-vue/issues/3498

183 183

/* istanbul ignore next: hard to test */

184 184

const $input = this.$refs.input

185 -

/* istanbul ignore if: hard to test outof sync value */

185 +

/* istanbul ignore if: hard to test out of sync value */

186 186

if ($input && value !== $input.value) {

187 187

$input.value = value

188 188

}

@@ -191,6 +191,7 @@ export default {

191 191

onInput(evt) {

192 192

// `evt.target.composing` is set by Vue

193 193

// https://github.com/vuejs/vue/blob/dev/src/platforms/web/runtime/directives/model.js

194 +

// TODO: Is this needed now with the latest Vue?

194 195

/* istanbul ignore if: hard to test composition events */

195 196

if (evt.target.composing) {

196 197

return

@@ -209,12 +210,6 @@ export default {

209 210

this.$emit('input', formattedValue)

210 211

},

211 212

onChange(evt) {

212 -

// `evt.target.composing` is set by Vue

213 -

// https://github.com/vuejs/vue/blob/dev/src/platforms/web/runtime/directives/model.js

214 -

/* istanbul ignore if: hard to test composition events */

215 -

if (evt.target.composing) {

216 -

return

217 -

}

218 213

const value = evt.target.value

219 214

const formattedValue = this.formatValue(value, evt)

220 215

// Exit when the `formatter` function strictly returned `false`

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