When a user copy and paste a string into the feature name field, the machine name isn't generating correctly because into the JS code, the unique handler that is implemented is keyup. We have to implement the onchange handler and manage the keyup event correctly

Comments

rvilar’s picture

Title: The machine name isn't updating correctly when copy&paste » The machine name isn't updating correctly when the user selects a previous input value

I rewrite the problem:

If the user starts typing in the feature name field, it shows previous entered values. If the user selects one of this and click the tab key, the machine name doesn't update correctly.

rvilar’s picture

Assigned: rvilar » Unassigned
Status: Active » Needs work
StatusFileSize
new1 KB

Attached patch that solves this problem

rvilar’s picture

Status: Needs work » Needs review

Changing state

hefox’s picture

Status: Needs review » Patch (to be ported)

Commited after quick review http://drupalcode.org/project/features.git/commit/e244546

Code different in d7 (why isn't is using core? machine name element?) but similair code is there

hefox’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
hefox’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new777 bytes

Going to open a new issue about converting to machine name element, but here's the patch for d7

fabsor’s picture

Status: Needs review » Reviewed & tested by the community

This works fine!

febbraro’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -JavaScript

Automatically closed -- issue fixed for 2 weeks with no activity.