cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Thingworx how to cancel autofocus filter input in dropdown widget

Blake_Xie
11-Garnet

Thingworx how to cancel autofocus filter input in dropdown widget

if you enable filter of dropdown widget, while click dropdown widget, filter input will auto focus in opened popup, How can I ban this autofocus action? I don't need autofocus in my scenario.

5 REPLIES 5

If possible, can you share the screenshot of the same?

Here is a quote from the following article - "Focus style cannot be disabled in ThingWorx 9.0.0" (link: https://www.ptc.com/en/support/article/CS329306 "Workaround to disable the default focus style is to use the following custom CSS"

 

ptcs-focus-overlay {
visibility: hidden;
}
.ptcs-wrapper:not([no-wc-style]):focus:not(.dummy):not(.dummy):not(.dummy) {
box-shadow: none;
}

 

Also, previously there were the following questions, the answers to which may also be useful:

https://community.ptc.com/t5/ThingWorx-Developers/Force-focus-to-a-textbox/td-p/501391

https://community.ptc.com/t5/ThingWorx-Developers/Text-Field-widget-not-focusing/td-p/676141

https://community.ptc.com/t5/ThingWorx-Developers/Set-focus-on-textbox/td-p/691461

very thank you VladimirN, it seems not to work for input filter of dropdown widget .

If you add the below under Custom CSS tab of TWX Mashup where Dropdown is added, you should be able to get rid of Default Blue border focus. I verified this on TWX 9.2, what is your version of TWX?

ptcs-focus-overlay {
visibility: hidden;
}
.ptcs-wrapper:not([no-wc-style]):focus:not(.dummy):not(.dummy):not(.dummy) {
box-shadow: none;
}

 

my TWX version is 9.1.3-b593, I added this CSS in my Mashup as you said, but it did not work, filter input still get focused when I open the popup of dropdown

Top Tags