Angular Material mat select overwrite selected value - css

I want to implement dropdown like :
But my dropdown is overwrite by selected options..
Working code is from angular material page:
https://stackblitz.com/edit/angular-sx649k?file=src/app/select-value-binding-example.html
and here is my non working solution:
https://stackblitz.com/edit/material-icons-2p1g5o?file=app/tooltip-delay-example.html
I'm not able to see any differences.. someone knows why it overwrites selected value?

Related

Semantic React UI controlled components not working with React Final Form

This question has also been raised on the react-final-form github issues list at https://github.com/final-form/react-final-form/issues/939
I'm using Semantic React UI 2.02 with react-final-form 6.5.3.
First Issue
I have a controlled Semantic React UI dropdown on a component that gets its value from the parent. If I put the Dropdown component directly into a React Final Form Field it works as expected. I can clear the currently selected value in the dropdown by updating the state value. But when I use a component you can see it ignores any change the parents tries to make to the state.
Not many examples out there to help guide me unfortunately.
Second Issue
Issue was "fixed" in 6.3.1 but still appears to exist.
#544
If I try to pass multiple to a custom component the value is ignored and always false.
Link to sandbox here https://codesandbox.io/s/semantic-react-ui-react-final-form-how-to-clear-dropdown-4l17f?file=/src/index.tsx
Third Issue
If you implement a wizard form and use a Semantic React UI dropdown on one of those forms. When you try to move back, the value selected on the dropdown is lost. Can't figure out a way to set it back again.
Would appreciate the wisdom of other users. Thanks in advance.

Bootstrap dropdown alignment off after loading dropdown contents dynamically in Blazor

In Blazor, you can load content dynamically by putting it in an #if block and then making that condition true, e.g. on a button click.
I have a Bootstrap dropdown whose contents are loaded when the dropdown is first clicked. For some reason, the right alignment is not honored on the first click of the dropdown button but is on each subsequent click to open it. There is something about the initial render and the CSS not being honored. I am not sure why this is happening.
Here is an example (Blazor server-side): https://blazorfiddle.com/s/yc5m9rv4
Since Bootstrap dropdowns user popper.js, the solution was found through that. Bootstrap provides an update method to refresh the dropdown's position.
To solve this issue, the update method just needed to be called after the dropdown is rendered.
Here is an update, with this solution, to the example in the question: https://blazorfiddle.com/s/t24r1753

How to highlight at DOM the last row added to state variable with VueJS

I am making a small CMS with Vue-Router and Firebase. The CMS has a section with the post list. When the user press the button to create new post, open a child component with the editor.
When the user saves the post, the child leaves and returns to the post list. I would like the added row to have a color highlight applied with CSS for a few seconds.
I know how to do the highlight effect with CSS class but I do not know how to apply that CSS class only to that new row with VueJS. Do you give me any suggestions or ideas?
Thanks in advance.
Simply your question: do sth in parent when sth has been handled in child component.
See vm.$emit

Robotframework: angularjs: unable to select a value in dropdown

I'm using robotframework for automating angularjs application.
I have a dropdown with list of states. I need to select 1 of them. Pictures are attached
Values that are available in dropdown
HTML for this
Could anyone help in selecting the value from dropdown?
I tried below
***variables***
${Residential_Address_State} dom = document.getElementById('PD_Me_AddrRes').getElementsByTagName('span')[3]
***test cases***
click element ${Residential_Address_State}
select from list by value ${Residential_Address_State} Victoria
I tried select from list by index and label as well, it didn't work. It clicks on the element, however it doesn't select the list in the dropdown i.e. victoria.
Can anyone please help?
Just click the element that you need
Click Element xpath=//li[text()="Victoria"]
Also, consider using ExtendedSelenium2Library if you haven't already.

How to bind data from SQL server in to Bootstrap Dropdown?

I am doing a project in ASP.Net using Bootstrap. I have a table called M_State. I need to bind the state names into bootstrap dropdown.
Is it possible to bind values from database into Bootstrap dropdown?
Bootstrap dropdown is just like any other dropdown with some styles added. You just bind your values that you get from SQL to the dropdown and give the CSS class for the dropdown as "form-control" and make sure you have bootstrap css in your project. And it should work fine

Resources