Add role button not working

On ERPNext 15, when user is added, it says:

No Roles Specified
Newly created user director@xyz.ab has no roles enabled.

and this also has a black button [Add roles]. But clicking on this button has not effect. One need to click on [ x ], to add roles, and other settings of the user.

Is it bug?

When click in the “Add Roles” then it will redirect to the user page and you have to set the role.

That’s what I was expecting, but it does not do anything.

Tested on Brave and Google Chrome browser on Linux.

Check it with the latest version, i tested in locally and also on the frappe cloud side so it’s working properly.

Mine version is:

ERPNext: v15.34.2 (version-15)
Frappe Framework: v15.40.3 (version-15)

while I could see latest as:

ERPNext: v15.35.1 (version-15)
Frappe Framework: v15.40.6 (version-15)

Open the console and check the error when clicking “Add Roles”.

My workflow is:

From user list, click on [+ Add User], Edit Full Form, uncheck [Send Welcome Email], fill Email, First Name and Last Name,and click [Save].

Click on [Add Roles] from dialogue box with message: No Roles Specified. It do nothing. Developer Tools (console) has nothing to show

It has some warning, as given below, but that was already there, was not the result of clicking of Add Roles button.

174[Violation] Added non-passive event listener to a scroll-blocking event. Consider marking event handler as ‘passive’ to make the page more responsive. See

grid_row.js:957 [Violation] Added non-passive event listener to a scroll-blocking ‘touchmove’ event. Consider marking event handler as ‘passive’ to make the page more responsive. See Chrome Platform Status

If the user enters the full form, nothing will happen, but if they use the quick entry form, they will be redirected.

Yes, this is the behaviour.

In “Quick Entry” there is no button with name [Add Roles], but buttin is [Save] which is perfectly fine.

When entered in full form, and you [Save] with giving roles, thee message prompted is correct, but the button [Add Roles] associated with that does not work, which is not Ok, IMO. So that button can be dropped, just [ x ] near top-right should be enough.