When I create a CActiveForm (for User model), when going to user/update
the form textfields are cleared when I focus on them.
Can I stop this from happening with a setting somehow?
I really do not like this Drupal-like default behaviour - I’d prefer the entire textfield’s text is selected instead, that way when I type it gets replaced or i can copy it or edit it … alot more flexible.
Sorry for my late reply (didn’t get the email notification for some reason?!)
Not using any kind of extensions no.
I’m using Yii version 1.1.13
That’s quite strange you’ve not seen this behavior - anyone else seen this automatic form-field clearing thing?
I’ve disabled ajax-validation for the form (in both the controller and the form in the view); I’ve disabled all my Firefox add-ons (safe mode) - I’ve also checked the page for any Jquery / css that might be causing this - can’t see it anywhere … still this is happening (in both Firefox and Chrome, which lets me think it’s not a browser issue?)
No, the framework doesn’t do that by default. It sounds like you have a piece of global javascript that’s gone awry. Are you using javascript to automatically clear a search field on focus or something?